diff options
author | Senthil Kumaran <senthil@uthcode.com> | 2016-01-26 02:54:37 (GMT) |
---|---|---|
committer | Senthil Kumaran <senthil@uthcode.com> | 2016-01-26 02:54:37 (GMT) |
commit | 0b57f0adde159331b545a359c9fa47b2d7ea2f94 (patch) | |
tree | 776577ed5db3ce57f8089d246917c33f5c54a2df /Lib/urllib | |
parent | f2c1aa1661edb3e14ff8b7b9995f93e303c8acbb (diff) | |
parent | d4e51f45a9b82832e95dcc55ba0d8f53ca725824 (diff) | |
download | cpython-0b57f0adde159331b545a359c9fa47b2d7ea2f94.zip cpython-0b57f0adde159331b545a359c9fa47b2d7ea2f94.tar.gz cpython-0b57f0adde159331b545a359c9fa47b2d7ea2f94.tar.bz2 |
merge from 3.5
Remove unnecessary test case comment in urllib.parse.py. These are asserted as test cases.
Diffstat (limited to 'Lib/urllib')
-rw-r--r-- | Lib/urllib/parse.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py index cecd0b9..99a6977 100644 --- a/Lib/urllib/parse.py +++ b/Lib/urllib/parse.py @@ -892,21 +892,6 @@ def urlencode(query, doseq=False, safe='', encoding=None, errors=None, l.append(k + '=' + elt) return '&'.join(l) -# Utilities to parse URLs (most of these return None for missing parts): -# unwrap('<URL:type://host/path>') --> 'type://host/path' -# splittype('type:opaquestring') --> 'type', 'opaquestring' -# splithost('//host[:port]/path') --> 'host[:port]', '/path' -# splituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]' -# splitpasswd('user:passwd') -> 'user', 'passwd' -# splitport('host:port') --> 'host', 'port' -# splitquery('/path?query') --> '/path', 'query' -# splittag('/path#tag') --> '/path', 'tag' -# splitattr('/path;attr1=value1;attr2=value2;...') -> -# '/path', ['attr1=value1', 'attr2=value2', ...] -# splitvalue('attr=value') --> 'attr', 'value' -# urllib.parse.unquote('abc%20def') -> 'abc def' -# quote('abc def') -> 'abc%20def') - def to_bytes(url): """to_bytes(u"URL") --> 'URL'.""" # Most URL schemes require ASCII. If that changes, the conversion |