(self, v)
Returns an script safe version of v if v is a str, or returns v.
Returns an script safe version of v if v is a str, or returns v.
Returns an script safe version of v if v is a str or returns v .
def _EscapeScriptValue(self, v):
    """Returns an script safe version of v if v is a str, or returns v."""
    if type(v) in [unicode, str]:
      return v.replace('\\', '\\\\').replace('"', '\\"')
    else:
      return v
def _EscapeScriptValue ( self , v ) : if type ( v ) in [ unicode , str ] : return v . replace ( '\\' , '\\\\' ) . replace ( '"' , '\\"' ) else : return v