]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[2.7] bpo-30375: Correct the stacklevel of regex compiling warnings. (#1595) (#1648)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 18 May 2017 10:46:17 +0000 (13:46 +0300)
committerGitHub <noreply@github.com>
Thu, 18 May 2017 10:46:17 +0000 (13:46 +0300)
commitdfcfc915787def056e225fb22ad5a5ee8da4052f
treee24ed34b8a29b6729923ce2bf190a8ab7b6b5ce7
parent955b6760cfa73c54bae9b6f2b335eb0cd806c7b0
[2.7] bpo-30375: Correct the stacklevel of regex compiling warnings. (#1595) (#1648)

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
Misc/NEWS