diff options
Diffstat (limited to 'wsgitools')
-rw-r--r-- | wsgitools/adapters.py | 6 | ||||
-rw-r--r-- | wsgitools/filters.py | 5 | ||||
-rw-r--r-- | wsgitools/middlewares.py | 5 |
3 files changed, 0 insertions, 16 deletions
diff --git a/wsgitools/adapters.py b/wsgitools/adapters.py index 6c6bbca..4c82200 100644 --- a/wsgitools/adapters.py +++ b/wsgitools/adapters.py @@ -9,12 +9,6 @@ __all__ = [] from wsgitools.filters import CloseableIterator, CloseableList -try: - next -except NameError: - def next(it): - return it.next() - __all__.append("WSGI2to1Adapter") class WSGI2to1Adapter: """Adapts an application with an interface that might somewhen be known as diff --git a/wsgitools/filters.py b/wsgitools/filters.py index 7ae1b69..4c7ff20 100644 --- a/wsgitools/filters.py +++ b/wsgitools/filters.py @@ -17,11 +17,6 @@ try: except ImportError: import StringIO as io -try: - next -except NameError: - def next(it): - return it.next() __all__.append("CloseableIterator") class CloseableIterator: diff --git a/wsgitools/middlewares.py b/wsgitools/middlewares.py index 804d474..dbf2020 100644 --- a/wsgitools/middlewares.py +++ b/wsgitools/middlewares.py @@ -11,11 +11,6 @@ try: import cStringIO as io except ImportError: import StringIO as io -try: - next -except NameError: - def next(iterator): - return iterator.next() if sys.version_info[0] >= 3: def exc_info_for_raise(exc_info): |