parameters: (line)
docstring: Transform a SYMBOL=VALUE line to CML1 defconfig format.
docstring_summary: Transform a SYMBOL=VALUE line to CML1 defconfig format.
docstring_tokens: Transform a SYMBOL = VALUE line to CML1 defconfig format .
function: def write_defconfig(line):
      "Transform a SYMBOL=VALUE line to CML1 defconfig format."
      if line[:2] == "$$":
          return ""
      eq = line.find("=")
      if eq == -1:
          return line
      else:
          line = line.split('#')[0]
          line = line.strip()
          if len(line) == 0 or line[-1] != "\n":
              line += "\n"
          symbol = line[:eq]
          value = line[eq+1:].strip()
      if value == 'n':
          return "# %s is not set\n" % symbol
      else:
          return line
function_tokens: def write_defconfig ( line ) : if line [ : 2 ] == "$$" : return "" eq = line . find ( "=" ) if eq == - 1 : return line else : line = line . split ( '#' ) [ 0 ] line = line . strip ( ) if len ( line ) == 0 or line [ - 1 ] != "\n" : line += "\n" symbol = line [ : eq ] value = line [ eq + 1 : ] . strip ( ) if value == 'n' : return "# %s is not set\n" % symbol else : return line