diff options
author | Raymond Hettinger <python@rcn.com> | 2014-11-22 22:14:41 -0800 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2014-11-22 22:14:41 -0800 |
commit | bb6c0aaebfbeb9ab13886e261df904c9c12853b9 (patch) | |
tree | aa283779a1ce070feb4c59a8c5cf624d3830059c /Lib/test/test_buffer.py | |
parent | 828d932a2c4da5eb7c05e85dfe51f5f6db68084d (diff) | |
download | cpython-git-bb6c0aaebfbeb9ab13886e261df904c9c12853b9.tar.gz |
PEP 479: Use the return-keyword instead of raising StopIteration inside a generators.
Diffstat (limited to 'Lib/test/test_buffer.py')
-rw-r--r-- | Lib/test/test_buffer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_buffer.py b/Lib/test/test_buffer.py index 1667847a9d..1cdc771a9a 100644 --- a/Lib/test/test_buffer.py +++ b/Lib/test/test_buffer.py @@ -216,7 +216,7 @@ def iter_format(nitems, testobj='ndarray'): for t in iter_mode(nitems, testobj): yield t if testobj != 'ndarray': - raise StopIteration + return yield struct_items(nitems, testobj) |