This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jwilk
Recipients jwilk
Date 2017-04-13.20:04:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492113853.22.0.518696650539.issue30067@psf.upfronthosting.co.za>
In-reply-to
Content
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, count=256)

It was probably meant to be:

    flags = re.sub(r'-arch\s+\w+\s', ' ', flags, flags=re.ASCII)


This bug was found using pydiatra:
http://jwilk.net/software/pydiatra
History
Date User Action Args
2017-04-13 20:04:13jwilksetrecipients: + jwilk
2017-04-13 20:04:13jwilksetmessageid: <1492113853.22.0.518696650539.issue30067@psf.upfronthosting.co.za>
2017-04-13 20:04:13jwilklinkissue30067 messages
2017-04-13 20:04:12jwilkcreate