summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-07-12 22:43:41 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-07-12 22:43:41 (GMT)
commit3446365c37811571d1139fe07166e7bfcb6ba35c (patch)
tree5a4dfccdc4791c9a9defc66d53383975fb717a5d
parentc4889c496ade6a1529a74054f8fcc2847d8cd0bb (diff)
downloadcpython-3446365c37811571d1139fe07166e7bfcb6ba35c.zip
cpython-3446365c37811571d1139fe07166e7bfcb6ba35c.tar.gz
cpython-3446365c37811571d1139fe07166e7bfcb6ba35c.tar.bz2
Repair flawed example.
-rw-r--r--Lib/test/test_generators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_generators.py b/Lib/test/test_generators.py
index a5b2c37..5bad79a 100644
--- a/Lib/test/test_generators.py
+++ b/Lib/test/test_generators.py
@@ -47,7 +47,7 @@ Let's try a simple generator:
>>> def f():
... yield 1
- ... return
+ ... raise StopIteration
... yield 2 # never reached
...
>>> g = f()