mirror of https://github.com/python/cpython
merge heads
This commit is contained in:
commit
5d4390eeec
|
@ -777,8 +777,8 @@ class HTTPConnection:
|
||||||
for d in data:
|
for d in data:
|
||||||
self.sock.sendall(d)
|
self.sock.sendall(d)
|
||||||
else:
|
else:
|
||||||
raise TypeError("data should be a bytes-like object\
|
raise TypeError("data should be a bytes-like object "
|
||||||
or an iterable, got %r " % type(data))
|
"or an iterable, got %r" % type(data))
|
||||||
|
|
||||||
def _output(self, s):
|
def _output(self, s):
|
||||||
"""Add a line of output to the current request buffer.
|
"""Add a line of output to the current request buffer.
|
||||||
|
|
|
@ -371,6 +371,8 @@ class UrlParseTestCase(unittest.TestCase):
|
||||||
self.checkJoin('http:///', '..','http:///')
|
self.checkJoin('http:///', '..','http:///')
|
||||||
self.checkJoin('', 'http://a/b/c/g?y/./x','http://a/b/c/g?y/./x')
|
self.checkJoin('', 'http://a/b/c/g?y/./x','http://a/b/c/g?y/./x')
|
||||||
self.checkJoin('', 'http://a/./g', 'http://a/./g')
|
self.checkJoin('', 'http://a/./g', 'http://a/./g')
|
||||||
|
self.checkJoin('svn://pathtorepo/dir1', 'dir2', 'svn://pathtorepo/dir2')
|
||||||
|
self.checkJoin('svn://pathtorepo/dir1', 'dir2', 'svn://pathtorepo/dir2')
|
||||||
|
|
||||||
def test_RFC2732(self):
|
def test_RFC2732(self):
|
||||||
str_cases = [
|
str_cases = [
|
||||||
|
|
|
@ -38,7 +38,8 @@ __all__ = ["urlparse", "urlunparse", "urljoin", "urldefrag",
|
||||||
# A classification of schemes ('' means apply by default)
|
# A classification of schemes ('' means apply by default)
|
||||||
uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'imap',
|
uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'imap',
|
||||||
'wais', 'file', 'https', 'shttp', 'mms',
|
'wais', 'file', 'https', 'shttp', 'mms',
|
||||||
'prospero', 'rtsp', 'rtspu', '', 'sftp']
|
'prospero', 'rtsp', 'rtspu', '', 'sftp',
|
||||||
|
'svn', 'svn+ssh']
|
||||||
uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet',
|
uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet',
|
||||||
'imap', 'wais', 'file', 'mms', 'https', 'shttp',
|
'imap', 'wais', 'file', 'mms', 'https', 'shttp',
|
||||||
'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '',
|
'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '',
|
||||||
|
|
|
@ -249,6 +249,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #12683: urlparse updated to include svn as schemes that uses relative
|
||||||
|
paths. (svn from 1.5 onwards support relative path).
|
||||||
|
|
||||||
- Issue #12655: Expose functions from sched.h in the os module: sched_yield(),
|
- Issue #12655: Expose functions from sched.h in the os module: sched_yield(),
|
||||||
sched_setscheduler(), sched_getscheduler(), sched_setparam(),
|
sched_setscheduler(), sched_getscheduler(), sched_setparam(),
|
||||||
sched_get_min_priority(), sched_get_max_priority(), sched_rr_get_interval(),
|
sched_get_min_priority(), sched_get_max_priority(), sched_rr_get_interval(),
|
||||||
|
|
Loading…
Reference in New Issue