parameters: (data)
return_statement: return urllib.quote_plus(data)
docstring: If ``data`` is unicode, return urllib.quote_plus(data.encode("utf-8"))
      otherwise return urllib.quote_plus(data)
docstring_summary: If ``data`` is unicode, return urllib.quote_plus(data.encode("utf-8"))
      otherwise return urllib.quote_plus(data)
docstring_tokens: If data is unicode return urllib . quote_plus ( data . encode ( utf - 8 )) otherwise return urllib . quote_plus ( data )
function: def encode_and_quote(data):
      """If ``data`` is unicode, return urllib.quote_plus(data.encode("utf-8"))
      otherwise return urllib.quote_plus(data)"""
      if data is None:
          return None
  
      if isinstance(data, unicode):
          data = data.encode("utf-8")
      return urllib.quote_plus(data)
function_tokens: def encode_and_quote ( data ) : if data is None : return None if isinstance ( data , unicode ) : data = data . encode ( "utf-8" ) return urllib . quote_plus ( data )