[issue30067] _osx_support.py: misplaced flags in re.sub()

2017-04-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker

[issue30067] _osx_support.py: misplaced flags in re.sub()

2017-04-14 Thread Xiang Zhang
Xiang Zhang added the comment: My fault. -- nosy: +xiang.zhang versions: -Python 2.7 ___ Python tracker ___

[issue30067] _osx_support.py: misplaced flags in re.sub()

2017-04-14 Thread Jack McCracken
Jack McCracken added the comment: https://github.com/python/cpython/pull/1135 and https://github.com/python/cpython/pull/1137 backport it to 3.5 and 3.6, respectively. -- ___ Python tracker

[issue30067] _osx_support.py: misplaced flags in re.sub()

2017-04-14 Thread Jack McCracken
Changes by Jack McCracken : -- pull_requests: +1271 ___ Python tracker ___ ___

[issue30067] _osx_support.py: misplaced flags in re.sub()

2017-04-14 Thread Jack McCracken
Changes by Jack McCracken : -- pull_requests: +1270 ___ Python tracker ___ ___

[issue30067] _osx_support.py: misplaced flags in re.sub()

2017-04-14 Thread Jack McCracken
Changes by Jack McCracken : -- pull_requests: +1269 ___ Python tracker ___ ___

[issue30067] _osx_support.py: misplaced flags in re.sub()

2017-04-14 Thread Jack McCracken
Jack McCracken added the comment: Resolved in GitHub https://github.com/python/cpython/pull/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. -- nosy: +Jack.McCracken ___ Python tracker

[issue30067] _osx_support.py: misplaced flags in re.sub()

2017-04-14 Thread STINNER Victor
STINNER Victor added the comment: I created the issue #30072: "re functions: convert count and flags parameters to keyword-only?". -- nosy: +haypo ___ Python tracker

[issue30067] _osx_support.py: misplaced flags in re.sub()

2017-04-14 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: needs patch -> backport needed ___ Python tracker ___

[issue30067] _osx_support.py: misplaced flags in re.sub()

2017-04-14 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1268 ___ Python tracker ___

[issue30067] _osx_support.py: misplaced flags in re.sub()

2017-04-14 Thread Xiang Zhang
Changes by Xiang Zhang : -- versions: +Python 2.7 ___ Python tracker ___ ___

[issue30067] _osx_support.py: misplaced flags in re.sub()

2017-04-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +easy stage: -> needs patch type: -> behavior versions: +Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue30067] _osx_support.py: misplaced flags in re.sub()

2017-04-13 Thread Jakub Wilk
New submission from Jakub Wilk: Lib/_osx_support.py contains the following line: flags = re.sub(r'-arch\s+\w+\s', ' ', flags, re.ASCII) But the 4th re.sub() argument is the maximum number of substitutions, so this is equivalent to: flags = re.sub(r'-arch\s+\w+\s', ' ', flags,