parameters: (url)
return_statement: return _coerce_result(DefragResult(defrag, frag))
docstring: Removes any existing fragment from URL.
  
      Returns a tuple of the defragmented URL and the fragment.  If
      the URL contained no fragments, the second element is the
      empty string.
docstring_summary: Removes any existing fragment from URL.
docstring_tokens: Removes any existing fragment from URL .
function: def urldefrag(url):
      """Removes any existing fragment from URL.
  
      Returns a tuple of the defragmented URL and the fragment.  If
      the URL contained no fragments, the second element is the
      empty string.
      """
      url, _coerce_result = _coerce_args(url)
      if '#' in url:
          s, n, p, a, q, frag = urlparse(url)
          defrag = urlunparse((s, n, p, a, q, ''))
      else:
          frag = ''
          defrag = url
      return _coerce_result(DefragResult(defrag, frag))
function_tokens: def urldefrag ( url ) : url , _coerce_result = _coerce_args ( url ) if '#' in url : s , n , p , a , q , frag = urlparse ( url ) defrag = urlunparse ( ( s , n , p , a , q , '' ) ) else : frag = '' defrag = url return _coerce_result ( DefragResult ( defrag , frag ) )