[Python-checkins] [python/cpython] dfcfc9: [2.7] bpo-30375: Correct the stacklevel of regex c...

GitHub noreply at github.com
Thu May 18 06:46:19 EDT 2017


 Branch: refs/heads/2.7
 Home: https://github.com/python/cpython
 Commit: dfcfc915787def056e225fb22ad5a5ee8da4052f
 https://github.com/python/cpython/commit/dfcfc915787def056e225fb22ad5a5ee8da4052f
 Author: Serhiy Storchaka <storchaka at gmail.com>
 Date: 2017年05月18日 (2017年5月18日)
 Changed paths:
 M Lib/sre_parse.py
 M Misc/NEWS
 Log Message:
 -----------
 [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)


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /