[Python-checkins] cpython (merge 3.5 -> default): merge from 3.5

senthil.kumaran python-checkins at python.org
Mon Jan 25 21:55:21 EST 2016


https://hg.python.org/cpython/rev/cbd4a6a2657e
changeset:   100067:cbd4a6a2657e
parent:      100065:27e5437f442c
parent:      100066:8571355e62ff
user:        Senthil Kumaran <senthil at uthcode.com>
date:        Mon Jan 25 18:54:37 2016 -0800
summary:
  merge from 3.5

Remove unnecessary test case comment in urllib.parse.py. These are asserted as test cases.

files:
  Lib/urllib/parse.py |  15 ---------------
  1 files changed, 0 insertions(+), 15 deletions(-)


diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py
--- a/Lib/urllib/parse.py
+++ b/Lib/urllib/parse.py
@@ -892,21 +892,6 @@
                         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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list