original_docstring: 
      Qualify a URL with a basepath. Will leave URL if the URL is already
      qualified.
      
docstring: Qualify a URL with a basepath. Will leave URL if the URL is already
  qualified.
docstring_tokens: Qualify a URL with a basepath . Will leave URL if the URL is already qualified .
code: def qualify_url(pathlike, base="/"):
      """
      Qualify a URL with a basepath. Will leave URL if the URL is already
      qualified.
      """
      path_str = str(pathlike)
      if not path_str.startswith(base) and is_local_url(path_str):
          return urljoin(base, path_str)
      else:
          return path_str
code_tokens: def qualify_url ( pathlike , base = "/" ) : path_str = str ( pathlike ) if not path_str . startswith ( base ) and is_local_url ( path_str ) : return urljoin ( base , path_str ) else : return path_str
short_docstring: Qualify a URL with a basepath.
short_docstring_tokens: Qualify a URL with a basepath .
comment: """
      Qualify a URL with a basepath. Will leave URL if the URL is already
      qualified.
      """