From 829e8d32d4f76f960158d865be80363e7cd918b7 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Thu, 15 May 2014 00:34:02 +0300 Subject: [PATCH] Remove __future__.with_statement imports. Gunicorn requires Python 2.6 or newer now: http://docs.gunicorn.org/en/latest/install.html#requirements --- gunicorn/arbiter.py | 2 -- gunicorn/pidfile.py | 2 -- gunicorn/workers/ggevent.py | 2 -- tests/t.py | 2 -- tests/test_003-config.py | 2 -- tests/treq.py | 2 -- 6 files changed, 12 deletions(-) diff --git a/gunicorn/arbiter.py b/gunicorn/arbiter.py index 458316e2..6f4587af 100644 --- a/gunicorn/arbiter.py +++ b/gunicorn/arbiter.py @@ -3,8 +3,6 @@ # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. -from __future__ import with_statement - import errno import os import random diff --git a/gunicorn/pidfile.py b/gunicorn/pidfile.py index 32a9ac37..2309ba88 100644 --- a/gunicorn/pidfile.py +++ b/gunicorn/pidfile.py @@ -3,8 +3,6 @@ # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. -from __future__ import with_statement - import errno import os import tempfile diff --git a/gunicorn/workers/ggevent.py b/gunicorn/workers/ggevent.py index c7c4dfba..9724011d 100644 --- a/gunicorn/workers/ggevent.py +++ b/gunicorn/workers/ggevent.py @@ -3,8 +3,6 @@ # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. -from __future__ import with_statement - import errno import os import sys diff --git a/tests/t.py b/tests/t.py index 6f1d044a..c84dc671 100644 --- a/tests/t.py +++ b/tests/t.py @@ -4,8 +4,6 @@ # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. -from __future__ import with_statement - import array import os import tempfile diff --git a/tests/test_003-config.py b/tests/test_003-config.py index 628e863a..c35feb79 100644 --- a/tests/test_003-config.py +++ b/tests/test_003-config.py @@ -3,8 +3,6 @@ # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. -from __future__ import with_statement - import t import functools diff --git a/tests/treq.py b/tests/treq.py index 10557b1e..816c31ec 100644 --- a/tests/treq.py +++ b/tests/treq.py @@ -3,8 +3,6 @@ # This file is part of the pywebmachine package released # under the MIT license. -from __future__ import with_statement - import t import inspect