]> granicus.if.org Git - python/commit
bpo-30375: Correct the stacklevel of regex compiling warnings. (#1595)
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 16 May 2017 12:16:15 +0000 (15:16 +0300)
committerGitHub <noreply@github.com>
Tue, 16 May 2017 12:16:15 +0000 (15:16 +0300)
commitc7ac7280c321b3c1679fe5f657a6be0f86adf173
treece201ce147377ada98b1b4ad55526e2eecfaaa8f
parent87fa8a780e9045a26c735f085c07bba4b2d0be60
bpo-30375: Correct the stacklevel of regex compiling warnings. (#1595)

Warnings emitted when compile a regular expression now always point
to the line in the user code.  Previously they could point into inners
of the re module if emitted from inside of groups or conditionals.
Lib/sre_parse.py
Lib/test/test_re.py
Misc/NEWS