code: def quote(self, s):
          
  
          if six.PY2:
              from pipes import quote
          else:
              from shlex import quote
  
          return quote(s)
docs: Return a shell-escaped version of the string s.