parameters: (self, escape_func, quote_func=quote_spaces)
docstring: Escape the string with the supplied function.  The
          function is expected to take an arbitrary string, then
          return it with all special characters escaped and ready
          for passing to the command interpreter.
  
          After calling this function, the next call to str() will
          return the escaped string.
docstring_summary: Escape the string with the supplied function.  The
          function is expected to take an arbitrary string, then
          return it with all special characters escaped and ready
          for passing to the command interpreter.
docstring_tokens: Escape the string with the supplied function . The function is expected to take an arbitrary string then return it with all special characters escaped and ready for passing to the command interpreter .
function: def escape(self, escape_func, quote_func=quote_spaces):
          """Escape the string with the supplied function.  The
          function is expected to take an arbitrary string, then
          return it with all special characters escaped and ready
          for passing to the command interpreter.
  
          After calling this function, the next call to str() will
          return the escaped string.
          """
  
          if self.is_literal():
              return escape_func(self.data)
          elif ' ' in self.data or '\t' in self.data:
              return quote_func(self.data)
          else:
              return self.data
function_tokens: def escape ( self , escape_func , quote_func = quote_spaces ) : if self . is_literal ( ) : return escape_func ( self . data ) elif ' ' in self . data or '\t' in self . data : return quote_func ( self . data ) else : return self . data