]> granicus.if.org Git - python/commit
[3.5] bpo-30375: Correct the stacklevel of regex compiling warnings. (GH-1595) (...
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 16 May 2017 15:16:45 +0000 (18:16 +0300)
committerGitHub <noreply@github.com>
Tue, 16 May 2017 15:16:45 +0000 (18:16 +0300)
commit24b5ed230df65f6a1f9d8dd0c4409377576113d9
treee755e04641b3750a71bee42c1ee7083c5d5f4f7b
parent72e5aa1ef812358b3b113e784e7365fec13dfd69
[3.5] bpo-30375: Correct the stacklevel of regex compiling warnings. (GH-1595) (#1605)

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..
(cherry picked from commit c7ac7280c321b3c1679fe5f657a6be0f86adf173)
Lib/sre_parse.py
Lib/test/test_re.py
Misc/NEWS