Skip to content

Commit

Permalink
Merge pull request #55 from scrapy/url-all
Browse files Browse the repository at this point in the history
Add __all__ to w3lib.url package
  • Loading branch information
kmike committed Apr 11, 2016
2 parents fddf599 + d71c283 commit 812f4f6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions w3lib/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,3 +264,11 @@ def any_to_uri(uri_or_path):
return path_to_file_uri(uri_or_path)
u = urlparse(uri_or_path)
return uri_or_path if u.scheme else path_to_file_uri(uri_or_path)


__all__ = ["add_or_replace_parameter", "any_to_uri", "file_uri_to_path",
"is_url", "path_to_file_uri", "safe_download_url",
"safe_url_string", "url_query_cleaner", "url_query_parameter",

# this last one is deprecated ; include it to be on the safe side
"urljoin_rfc"]

0 comments on commit 812f4f6

Please sign in to comment.