Message264545
How about...
@@ -2339,9 +2339,12 @@ def mock_open(mock=None, read_data=''):
if handle.readline.return_value is not None:
while True:
yield handle.readline.return_value
- for line in _state[0]:
- yield line
+ try:
+ while True:
+ yield next(_state[0])
+ except StopIteration:
+ yield '' |
|
Date |
User |
Action |
Args |
2016-04-30 08:17:14 | yolanda.robla | set | recipients:
+ yolanda.robla, rbcollins |
2016-04-30 08:17:14 | yolanda.robla | set | messageid: <1462004234.72.0.579452614018.issue26807@psf.upfronthosting.co.za> |
2016-04-30 08:17:14 | yolanda.robla | link | issue26807 messages |
2016-04-30 08:17:14 | yolanda.robla | create | |
|