diff options
Diffstat (limited to 'paste/wsgilib.py')
-rw-r--r-- | paste/wsgilib.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/paste/wsgilib.py b/paste/wsgilib.py index 98299e2..116f47b 100644 --- a/paste/wsgilib.py +++ b/paste/wsgilib.py @@ -46,6 +46,10 @@ class add_close(object): def next(self): return self.app_iter.next() + # Python 3 uses __next__ instead of next + def __next__(self): + return bytes(next(self.app_iter), encoding='ascii') + def close(self): self._closed = True if hasattr(self.app_iterable, 'close'): |