@@ -210,7 +210,7 @@ def _remove_universal_flags(_config_vars):
210210 # Do not alter a config var explicitly overridden by env var
211211 if cv in _config_vars and cv not in os .environ :
212212 flags = _config_vars [cv ]
213- flags = re .sub ('-arch\s+\w+\s' , ' ' , flags , re .ASCII )
213+ flags = re .sub (r '-arch\s+\w+\s' , ' ' , flags , re .ASCII )
214214 flags = re .sub ('-isysroot [^ \t ]*' , ' ' , flags )
215215 _save_modified_value (_config_vars , cv , flags )
216216
@@ -232,7 +232,7 @@ def _remove_unsupported_archs(_config_vars):
232232 if 'CC' in os .environ :
233233 return _config_vars
234234
235- if re .search ('-arch\s+ppc' , _config_vars ['CFLAGS' ]) is not None :
235+ if re .search (r '-arch\s+ppc' , _config_vars ['CFLAGS' ]) is not None :
236236 # NOTE: Cannot use subprocess here because of bootstrap
237237 # issues when building Python itself
238238 status = os .system (
@@ -251,7 +251,7 @@ def _remove_unsupported_archs(_config_vars):
251251 for cv in _UNIVERSAL_CONFIG_VARS :
252252 if cv in _config_vars and cv not in os .environ :
253253 flags = _config_vars [cv ]
254- flags = re .sub ('-arch\s+ppc\w*\s' , ' ' , flags )
254+ flags = re .sub (r '-arch\s+ppc\w*\s' , ' ' , flags )
255255 _save_modified_value (_config_vars , cv , flags )
256256
257257 return _config_vars
@@ -267,7 +267,7 @@ def _override_all_archs(_config_vars):
267267 for cv in _UNIVERSAL_CONFIG_VARS :
268268 if cv in _config_vars and '-arch' in _config_vars [cv ]:
269269 flags = _config_vars [cv ]
270- flags = re .sub ('-arch\s+\w+\s' , ' ' , flags )
270+ flags = re .sub (r '-arch\s+\w+\s' , ' ' , flags )
271271 flags = flags + ' ' + arch
272272 _save_modified_value (_config_vars , cv , flags )
273273
@@ -465,7 +465,7 @@ def get_platform_osx(_config_vars, osname, release, machine):
465465
466466 machine = 'fat'
467467
468- archs = re .findall ('-arch\s+(\S+)' , cflags )
468+ archs = re .findall (r '-arch\s+(\S+)' , cflags )
469469 archs = tuple (sorted (set (archs )))
470470
471471 if len (archs ) == 1 :
0 commit comments