def shlex_quote(s):
 if (not s):
  return "''"
 if (_find_unsafe(s) is None):
  return s
 return (("'" + s.replace("'", '\'"\'"\'')) + "'")

def shlex_quote ( s ) : if ( not s ) : return "''" if ( _find_unsafe ( s ) is None ) : return s return ( ( "'" + s . replace ( "'" , '\'"\'"\'' ) ) + "'" )
return a shell-escaped version of the string *s* .