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

Skip to content

Commit 5d4390e

Browse files
committed
merge heads
2 parents 7ac9214 + 8283a62 commit 5d4390e

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

Lib/http/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -777,8 +777,8 @@ def send(self, data):
777777
for d in data:
778778
self.sock.sendall(d)
779779
else:
780-
raise TypeError("data should be a bytes-like object\
781-
or an iterable, got %r " % type(data))
780+
raise TypeError("data should be a bytes-like object "
781+
"or an iterable, got %r" % type(data))
782782

783783
def _output(self, s):
784784
"""Add a line of output to the current request buffer.

Lib/test/test_urlparse.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,8 @@ def test_urljoins(self):
371371
self.checkJoin('http:///', '..','http:///')
372372
self.checkJoin('', 'http://a/b/c/g?y/./x','http://a/b/c/g?y/./x')
373373
self.checkJoin('', 'http://a/./g', 'http://a/./g')
374+
self.checkJoin('svn://pathtorepo/dir1', 'dir2', 'svn://pathtorepo/dir2')
375+
self.checkJoin('svn://pathtorepo/dir1', 'dir2', 'svn://pathtorepo/dir2')
374376

375377
def test_RFC2732(self):
376378
str_cases = [

Lib/urllib/parse.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
# A classification of schemes ('' means apply by default)
3939
uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'imap',
4040
'wais', 'file', 'https', 'shttp', 'mms',
41-
'prospero', 'rtsp', 'rtspu', '', 'sftp']
41+
'prospero', 'rtsp', 'rtspu', '', 'sftp',
42+
'svn', 'svn+ssh']
4243
uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet',
4344
'imap', 'wais', 'file', 'mms', 'https', 'shttp',
4445
'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '',

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@ Core and Builtins
249249
Library
250250
-------
251251

252+
- Issue #12683: urlparse updated to include svn as schemes that uses relative
253+
paths. (svn from 1.5 onwards support relative path).
254+
252255
- Issue #12655: Expose functions from sched.h in the os module: sched_yield(),
253256
sched_setscheduler(), sched_getscheduler(), sched_setparam(),
254257
sched_get_min_priority(), sched_get_max_priority(), sched_rr_get_interval(),

0 commit comments

Comments
 (0)