summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbottle.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bottle.py b/bottle.py
index f057eba..23fff76 100755
--- a/bottle.py
+++ b/bottle.py
@@ -2629,10 +2629,10 @@ class WSGIFileWrapper(object):
def __iter__(self):
buff, read = self.buffer_size, self.read
- while True:
- part = read(buff)
- if not part: return
+ part = read(buff)
+ while part:
yield part
+ part = read(buff)
class _closeiter(object):