parameters: (val)
return_statement: return urllib.quote(val)
docstring: Quotes a string for use in a URL.
      
          >>> urlquote('://?f=1&j=1')
          '%3A//%3Ff%3D1%26j%3D1'
          >>> urlquote(None)
          ''
          >>> urlquote(u'\u203d')
          '%E2%80%BD'
docstring_summary: Quotes a string for use in a URL.
      
          >>> urlquote('://?f=1&j=1')
          '%3A//%3Ff%3D1%26j%3D1'
          >>> urlquote(None)
          ''
          >>> urlquote(u'\u203d')
          '%E2%80%BD'
docstring_tokens: Quotes a string for use in a URL . >>> urlquote ( : // ?f = 1&j = 1 ) %3A // %3Ff%3D1%26j%3D1 >>> urlquote ( None ) >>> urlquote ( u \ u203d ) %E2%80%BD
function: def urlquote(val):
      """
      Quotes a string for use in a URL.
      
          >>> urlquote('://?f=1&j=1')
          '%3A//%3Ff%3D1%26j%3D1'
          >>> urlquote(None)
          ''
          >>> urlquote(u'\u203d')
          '%E2%80%BD'
      """
      if val is None: return ''
      if not isinstance(val, unicode): val = str(val)
      else: val = val.encode('utf-8')
      return urllib.quote(val)
function_tokens: def urlquote ( val ) : if val is None : return '' if not isinstance ( val , unicode ) : val = str ( val ) else : val = val . encode ( 'utf-8' ) return urllib . quote ( val )