Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d4e51f4

Browse files
committed
Remove unnecessary test case comment in urllib.parse.py. These are asserted as test cases.
1 parent 3bf1d87 commit d4e51f4

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

Lib/urllib/parse.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -830,21 +830,6 @@ def urlencode(query, doseq=False, safe='', encoding=None, errors=None,
830830
l.append(k + '=' + elt)
831831
return '&'.join(l)
832832

833-
# Utilities to parse URLs (most of these return None for missing parts):
834-
# unwrap('<URL:type://host/path>') --> 'type://host/path'
835-
# splittype('type:opaquestring') --> 'type', 'opaquestring'
836-
# splithost('//host[:port]/path') --> 'host[:port]', '/path'
837-
# splituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'
838-
# splitpasswd('user:passwd') -> 'user', 'passwd'
839-
# splitport('host:port') --> 'host', 'port'
840-
# splitquery('/path?query') --> '/path', 'query'
841-
# splittag('/path#tag') --> '/path', 'tag'
842-
# splitattr('/path;attr1=value1;attr2=value2;...') ->
843-
# '/path', ['attr1=value1', 'attr2=value2', ...]
844-
# splitvalue('attr=value') --> 'attr', 'value'
845-
# urllib.parse.unquote('abc%20def') -> 'abc def'
846-
# quote('abc def') -> 'abc%20def')
847-
848833
def to_bytes(url):
849834
"""to_bytes(u"URL") --> 'URL'."""
850835
# Most URL schemes require ASCII. If that changes, the conversion

0 commit comments

Comments
 (0)