You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
_osx_support.py: misplaced flags in re.sub() #74253
Activity
jwilk commentedon Apr 13, 2017
Lib/_osx_support.py contains the following line:
But the 4th re.sub() argument is the maximum number of substitutions, so this is equivalent to:
It was probably meant to be:
This bug was found using pydiatra:
http://jwilk.net/software/pydiatra
vstinner commentedon Apr 14, 2017
I created the issue bpo-30072: "re functions: convert count and flags parameters to keyword-only?".
JackMc commentedon Apr 14, 2017
Resolved in GitHub #1134.
In 2.7, the flag re.ASCII is not passed due to 2.7's default ASCII strings.
Backporting to 3.5 and 3.6.
JackMc commentedon Apr 14, 2017
#1135 and #1137 backport it to 3.5 and 3.6, respectively.
zhangyangyu commentedon Apr 14, 2017
My fault.