]> granicus.if.org Git - python/commit
[3.6] Clarify exception handler scope in contextlib (GH-1103)
authorMariatta <Mariatta@users.noreply.github.com>
Thu, 13 Apr 2017 03:52:39 +0000 (20:52 -0700)
committerGitHub <noreply@github.com>
Thu, 13 Apr 2017 03:52:39 +0000 (20:52 -0700)
commitbd1173f202f5a3990063d980368e7ad1edc9b5b5
tree2f2a5f4b0ab0214d7f8c2fc25f407e66be1267ac
parentbc9025012fc5ae007283e9ef345dba0ba08cf2b9
[3.6] Clarify exception handler scope in contextlib (GH-1103)

Moved explicit raise from inside try to try...else.
(cherry picked from commit 680e20beee8bbce9f857b8e7795009191f98b0ba)
Lib/contextlib.py