parameters: (self)
return_statement: return ''.join(url)
docstring: Build the path URL to use.
docstring_summary: Build the path URL to use.
docstring_tokens: Build the path URL to use .
function: def path_url(self):
          """Build the path URL to use."""
  
          url = []
  
          p = urlsplit(self.url)
  
          path = p.path
          if not path:
              path = '/'
  
          url.append(path)
  
          query = p.query
          if query:
              url.append('?')
              url.append(query)
  
          return ''.join(url)
function_tokens: def path_url ( self ) : url = [ ] p = urlsplit ( self . url ) path = p . path if not path : path = '/' url . append ( path ) query = p . query if query : url . append ( '?' ) url . append ( query ) return '' . join ( url )