(string)
return re.sub('[^a-zA-Z0-9_]', '_', string)
Convert a string to a value that is acceptable as a make variable name.
Convert a string to a value that is acceptable as a make variable name.
Convert a string to a value that is acceptable as a make variable name .
def StringToMakefileVariable(string):
  """Convert a string to a value that is acceptable as a make variable name."""
  return re.sub('[^a-zA-Z0-9_]', '_', string)
def StringToMakefileVariable ( string ) : return re . sub ( '[^a-zA-Z0-9_]' , '_' , string )