mirror of
https://github.com/python/cpython.git
synced 2025-08-15 06:10:47 +00:00
normalize whitespace in Lib/distutils/msvc9compiler.py
This commit is contained in:
parent
323b5daa10
commit
3dca9f52a4
1 changed files with 2 additions and 2 deletions
|
@ -685,7 +685,7 @@ class MSVCCompiler(CCompiler) :
|
|||
def manifest_get_embed_info(self, target_desc, ld_args):
|
||||
# If a manifest should be embedded, return a tuple of
|
||||
# (manifest_filename, resource_id). Returns None if no manifest
|
||||
# should be embedded. See http://bugs.python.org/issue7833 for why
|
||||
# should be embedded. See http://bugs.python.org/issue7833 for why
|
||||
# we want to avoid any manifest for extension modules if we can)
|
||||
for arg in ld_args:
|
||||
if arg.startswith("/MANIFESTFILE:"):
|
||||
|
@ -728,7 +728,7 @@ class MSVCCompiler(CCompiler) :
|
|||
manifest_buf = re.sub(pattern, "", manifest_buf)
|
||||
pattern = "<dependentAssembly>\s*</dependentAssembly>"
|
||||
manifest_buf = re.sub(pattern, "", manifest_buf)
|
||||
# Now see if any other assemblies are referenced - if not, we
|
||||
# Now see if any other assemblies are referenced - if not, we
|
||||
# don't want a manifest embedded.
|
||||
pattern = re.compile(
|
||||
r"""<assemblyIdentity.*?name=(?:"|')(.+?)(?:"|')"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue