]> granicus.if.org Git - python/commitdiff
bpo-27122: Fix comment to point to correct issue number (#47)
authorNathaniel J. Smith <njs@pobox.com>
Sun, 12 Feb 2017 11:37:24 +0000 (03:37 -0800)
committerBerker Peksag <berker.peksag@gmail.com>
Sun, 12 Feb 2017 11:37:24 +0000 (14:37 +0300)
It took me quite a bit to figure out what this was referring to,
since the given issue number is wrong, and the original commit
message I found through git blame lists a different, also wrong
issue number... see https://bugs.python.org/issue27122#msg279449

Lib/contextlib.py

index 7d94a579c872b7c389631d36d9e0914b48a55d6e..8421968525947e5b3b1090cf1e130979670ffc81 100644 (file)
@@ -105,7 +105,7 @@ class _GeneratorContextManager(ContextDecorator, AbstractContextManager):
                 # raised inside the "with" statement from being suppressed.
                 return exc is not value
             except RuntimeError as exc:
-                # Don't re-raise the passed in exception. (issue27112)
+                # Don't re-raise the passed in exception. (issue27122)
                 if exc is value:
                     return False
                 # Likewise, avoid suppressing if a StopIteration exception