summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Abramowitz <marc@marc-abramowitz.com>2016-03-07 17:35:33 -0800
committerMarc Abramowitz <marc@marc-abramowitz.com>2016-03-07 17:35:33 -0800
commitde976d04b0ac2b3662cb609717ae506f904bc832 (patch)
tree4bd824b2dcf36f0760e14e5164196feba65bf73e
parent92a0a74a48bc6e2498543944f9634dd1658fff39 (diff)
parent771b9d1e9c854ccd3d04466eeeed3dba3ee85189 (diff)
downloadpaste-de976d04b0ac2b3662cb609717ae506f904bc832.tar.gz
Merge default to python3_wsgilib_add_close_next
-rw-r--r--paste/wsgilib.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/paste/wsgilib.py b/paste/wsgilib.py
index 98299e2..772e090 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'):