]> granicus.if.org Git - python/commitdiff
Revert previous checkin:
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 22 Oct 2005 03:51:42 +0000 (03:51 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 22 Oct 2005 03:51:42 +0000 (03:51 +0000)
According to Jeremy, the comment only made sense when
the yield was disallowed.  Now it's testing that the yield
is allowed, so it's not bad and the outer finally is irrelevant.

Lib/test/test_generators.py

index d226043ce35b49d59d5547264083c17fc8b0a47b..cb7e99209049dd831408ac2db4230c75fb9a89cc 100644 (file)
@@ -774,7 +774,7 @@ These are fine:
 ...         try:
 ...             1//0
 ...         except ZeroDivisionError:
-...             yield 666  # bad because *outer* try has finally
+...             yield 666 
 ...         except:
 ...             pass
 ...     finally: