parameters: (self, x)
return_statement: return x
docstring: Surround a process argument by quotes so that a list of arguments can be written to a file
  
  		:param x: flag
  		:type x: string
  		:return: quoted flag
  		:rtype: string
docstring_summary: Surround a process argument by quotes so that a list of arguments can be written to a file
docstring_tokens: Surround a process argument by quotes so that a list of arguments can be written to a file
function: def quote_flag(self, x):
  		"""
  		Surround a process argument by quotes so that a list of arguments can be written to a file
  
  		:param x: flag
  		:type x: string
  		:return: quoted flag
  		:rtype: string
  		"""
  		old = x
  		if '\\' in x:
  			x = x.replace('\\', '\\\\')
  		if '"' in x:
  			x = x.replace('"', '\\"')
  		if old != x or ' ' in x or '\t' in x or "'" in x:
  			x = '"%s"' % x
  		return x
function_tokens: def quote_flag ( self , x ) : old = x if '\\' in x : x = x . replace ( '\\' , '\\\\' ) if '"' in x : x = x . replace ( '"' , '\\"' ) if old != x or ' ' in x or '\t' in x or "'" in x : x = '"%s"' % x return x