commit | bb6c0aaebfbeb9ab13886e261df904c9c12853b9 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Sat Nov 22 22:14:41 2014 -0800 |
committer | Raymond Hettinger <python@rcn.com> | Sat Nov 22 22:14:41 2014 -0800 |
tree | aa283779a1ce070feb4c59a8c5cf624d3830059c | |
parent | 828d932a2c4da5eb7c05e85dfe51f5f6db68084d [diff] [blame] |
PEP 479: Use the return-keyword instead of raising StopIteration inside a generators.
diff --git a/Lib/mailbox.py b/Lib/mailbox.py index 145b204..e7f31df 100644 --- a/Lib/mailbox.py +++ b/Lib/mailbox.py
@@ -1949,7 +1949,7 @@ while True: line = self.readline() if not line: - raise StopIteration + return yield line def tell(self):