summaryrefslogtreecommitdiffstats
path: root/Lib/_osx_support.py
diff options
context:
space:
mode:
authorJack McCracken <jack.mccracken@shopify.com>2017-04-14 12:28:55 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2017-04-14 12:28:55 (GMT)
commitce040f6c1ef4d31bad8a3ce51a766a0f82c7d2a0 (patch)
tree99aa0a2530fba450349eca34f1e7720caa437041 /Lib/_osx_support.py
parent685cdb9acc3fca04a9897d88b89771ddfd50e772 (diff)
downloadcpython-ce040f6c1ef4d31bad8a3ce51a766a0f82c7d2a0.zip
cpython-ce040f6c1ef4d31bad8a3ce51a766a0f82c7d2a0.tar.gz
cpython-ce040f6c1ef4d31bad8a3ce51a766a0f82c7d2a0.tar.bz2
Fix misplaced positional argument in OS X support library (#1134)
Diffstat (limited to 'Lib/_osx_support.py')
-rw-r--r--Lib/_osx_support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_osx_support.py b/Lib/_osx_support.py
index eadf06f..e37852e 100644
--- a/Lib/_osx_support.py
+++ b/Lib/_osx_support.py
@@ -210,7 +210,7 @@ def _remove_universal_flags(_config_vars):
# Do not alter a config var explicitly overridden by env var
if cv in _config_vars and cv not in os.environ:
flags = _config_vars[cv]
- flags = re.sub(r'-arch\s+\w+\s', ' ', flags, re.ASCII)
+ flags = re.sub(r'-arch\s+\w+\s', ' ', flags, flags=re.ASCII)
flags = re.sub('-isysroot [^ \t]*', ' ', flags)
_save_modified_value(_config_vars, cv, flags)