class_docstr: Concrete class that implements an interface to Microsoft Visual C++,
  as defined by the CCompiler abstract class.
class_docstr_tok: ["Concrete","class","that","implements","an","interface","to","Microsoft","Visual","C++",",","as","defined","by","the","CCompiler","abstract","class","."]
code: def _remove_visual_c_ref(self, manifest_file):
      try:
          # Remove references to the Visual C runtime, so they will
          # fall through to the Visual C dependency of Python.exe.
          # This way, when installed for a restricted user (e.g.
          # runtimes are not in WinSxS folder, but in Python's own
          # folder), the runtimes do not need to be in every folder
          # with .pyd's.
          # Returns either the filename of the modified manifest or
          # None if no manifest should be embedded.
          manifest_f = open(manifest_file)
          try:
              manifest_buf = manifest_f.read()
          finally:
              manifest_f.close()
          pattern = re.compile(
              r"""<assemblyIdentity.*?name=("|')Microsoft\."""
              r"""VC\d{2}\.CRT("|').*?(/>|</assemblyIdentity>)""",
              re.DOTALL,
          )
          manifest_buf = re.sub(pattern, "", manifest_buf)
          pattern = r"<dependentAssembly>\s*</dependentAssembly>"
          manifest_buf = re.sub(pattern, "", manifest_buf)
          # Now see if any other assemblies are referenced - if not, we
          # don't want a manifest embedded.
          pattern = re.compile(
              r"""<assemblyIdentity.*?name=(?:"|')(.+?)(?:"|')"""
              r""".*?(?:/>|</assemblyIdentity>)""",
              re.DOTALL,
          )
          if re.search(pattern, manifest_buf) is None:
              return None
  
          manifest_f = open(manifest_file, "w")
          try:
              manifest_f.write(manifest_buf)
              return manifest_file
          finally:
              manifest_f.close()
      except OSError:
          pass
  
imports: import os
  import subprocess
  import sys
  import re
  from distutils.errors import DistutilsExecError, DistutilsPlatformError, CompileError, LibError, LinkError
  from distutils.ccompiler import CCompiler, gen_lib_options
  from distutils import log
  from distutils.util import get_platform
  import winreg
label_desc: Use image node_id 9 for calling the MSVCCompiler obj's underlying member method code with example usage: obj._remove_visual_c_ref(manifest_file) and returns: None, manifest_file