parameters: (module, template, content, macros=None)
docstring: Create a configuration module by replacing "@" followed by
      "SIP_CONFIGURATION" followed by "@" in a template file with a content
      string.
  
      module is the name of the module file.
      template is the name of the template file.
      content is the content string.  If it is a dictionary it is first converted
      to a string using create_content().
      macros is an optional dictionary of platform specific build macros.  It is
      only used if create_content() is called to convert the content to a string.
docstring_summary: Create a configuration module by replacing "@" followed by
      "SIP_CONFIGURATION" followed by "@" in a template file with a content
      string.
docstring_tokens: Create a configuration module by replacing @ followed by SIP_CONFIGURATION followed by @ in a template file with a content string .
function: def create_config_module(module, template, content, macros=None):
      """Create a configuration module by replacing "@" followed by
      "SIP_CONFIGURATION" followed by "@" in a template file with a content
      string.
  
      module is the name of the module file.
      template is the name of the template file.
      content is the content string.  If it is a dictionary it is first converted
      to a string using create_content().
      macros is an optional dictionary of platform specific build macros.  It is
      only used if create_content() is called to convert the content to a string.
      """
      if type(content) == dict:
          content = create_content(content, macros)
  
      # Allow this file to used as a template.
      key = "@" + "SIP_CONFIGURATION" + "@"
  
      df = open(module, "w")
      sf = open(template, "r")
  
      line = sf.readline()
      while line:
          if line.find(key) >= 0:
              line = content
  
          df.write(line)
  
          line = sf.readline()
function_tokens: def create_config_module ( module , template , content , macros = None ) : if type ( content ) == dict : content = create_content ( content , macros ) # Allow this file to used as a template. key = "@" + "SIP_CONFIGURATION" + "@" df = open ( module , "w" ) sf = open ( template , "r" ) line = sf . readline ( ) while line : if line . find ( key ) >= 0 : line = content df . write ( line ) line = sf . readline ( )