From: Jack McCracken Date: Fri, 14 Apr 2017 14:44:34 +0000 (-0400) Subject: Fix misplaced positional argument in OS X support library (#1137) X-Git-Tag: v3.6.2rc1~226 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7ac96ec60e944bbfa290c869225dc48b542b6884;p=thirdparty%2FPython%2Fcpython.git Fix misplaced positional argument in OS X support library (#1137) --- diff --git a/Lib/_osx_support.py b/Lib/_osx_support.py index eadf06f20e25..e37852e2536c 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)