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, 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

----------
components: Library (Lib)
messages: 291631
nosy: jwilk
priority: normal
severity: normal
status: open
title: _osx_support.py: misplaced flags in re.sub()

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30067>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to