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

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