bpo-29976: urllib.parse clarify '' in scheme values. by orsenthil · Pull Request #984 · python/cpython (original) (raw)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment applies to all three lists, uses_relative
, uses_netloc
and uses_params
.
All of them have '' (empty string) listed as supported scheme, because that is the defaultdef urlsplit(url, scheme='', allow_fragments=True):
anddef urlparse(url, scheme='', allow_fragments=True):
And the current comment is:# A classification of schemes ('' means apply by default)
- I think, the existing comment is confusing, and thus, this change is to make it a bit clear.