Skip to content

Commit 812f4f6

Browse files
committed
Merge pull request #55 from scrapy/url-all
Add __all__ to w3lib.url package
2 parents fddf599 + d71c283 commit 812f4f6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

w3lib/url.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,3 +264,11 @@ def any_to_uri(uri_or_path):
264264
return path_to_file_uri(uri_or_path)
265265
u = urlparse(uri_or_path)
266266
return uri_or_path if u.scheme else path_to_file_uri(uri_or_path)
267+
268+
269+
__all__ = ["add_or_replace_parameter", "any_to_uri", "file_uri_to_path",
270+
"is_url", "path_to_file_uri", "safe_download_url",
271+
"safe_url_string", "url_query_cleaner", "url_query_parameter",
272+
273+
# this last one is deprecated ; include it to be on the safe side
274+
"urljoin_rfc"]

0 commit comments

Comments
 (0)