]> granicus.if.org Git - python/commitdiff
bpo-27122: Fix comment to point to correct issue number (#50)
authorBerker Peksag <berker.peksag@gmail.com>
Sun, 12 Feb 2017 16:18:00 +0000 (19:18 +0300)
committerGitHub <noreply@github.com>
Sun, 12 Feb 2017 16:18:00 +0000 (19:18 +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

(cherry picked from commit af88e7eda4101f36e904771d3cf59a5f740b3b00)

Lib/contextlib.py

index d44edd6e198ad94b09d173088f473126287ed8dc..4a7bd079a7dbb8eba117ff6a0dcf962fa9a7a4a1 100644 (file)
@@ -82,7 +82,7 @@ class _GeneratorContextManager(ContextDecorator):
                 # 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