summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hellkamp <marc@gsites.de>2019-12-09 09:15:10 +0100
committerMarcel Hellkamp <marc@gsites.de>2019-12-09 09:15:10 +0100
commitee02266d41ce0e8d966754a74157e1c9c5e7d889 (patch)
tree63df05d8f72a1b8051b50c4b4d6a98a1af992d3f
parent9d4ec2625883868a4938bff0b6db4902422ce924 (diff)
downloadbottle-defnull-noclen.tar.gz
Fix py27 syntax errordefnull-noclen
-rwxr-xr-xbottle.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bottle.py b/bottle.py
index a8565d7..9f4503e 100755
--- a/bottle.py
+++ b/bottle.py
@@ -1312,7 +1312,8 @@ class BaseRequest(object):
yield part
else: # Non Content-Length header
# Assume 'wsgi.input_terminated' support or 'Connection: close'
- yield from iter(lambda: read(bufsize), b'')
+ for part in iter(lambda: read(bufsize), b''):
+ yield part
@staticmethod
def _iter_chunked(read, bufsize):