-
Notifications
You must be signed in to change notification settings - Fork 46
Adding parse and DecodedURL docs #126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
a06eedb
1f57a36
4afeb55
6682bd9
b086352
182f834
2bae6f6
ca40c74
2d21b70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1787,7 +1787,7 @@ class DecodedURL(object): | |
| ... host=u'pypi.org', path=(u'projects', u'hyperlink')).to_text()) | ||
| https://pypi.org/projects/hyperlink | ||
|
|
||
| *(New in 18.0.0)* | ||
| .. versionadded:: 18.0.0 | ||
| """ | ||
| def __init__(self, url=_EMPTY_URL, lazy=False): | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why the default? Perhaps merits discussion outside of doc changes.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, a couple reasons:
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, and the reason for including it in these changes was because I really wanted to avoid people programmatically constructing the newly-exposed DecodedURL by doing Without realizing that URL's initializer arguments aren't as rigorously decoded/encoded as the rest of DecodedURL's API. I proposed adding a
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK makes sense, and yes to |
||
| # type: (URL, bool) -> None | ||
|
|
@@ -2137,7 +2137,7 @@ def parse(url, decoded=True, lazy=False): | |
| default, `lazy=False`, checks all encoded parts of the URL | ||
| for decodability. | ||
|
|
||
| *(New in 18.0.0)* | ||
| .. versionadded:: 18.0.0 | ||
| """ | ||
| enc_url = EncodedURL.from_text(url) | ||
| if not decoded: | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.