From: Brett Cannon Date: Tue, 29 Jun 2004 04:05:57 +0000 (+0000) Subject: Add support in urlparse for recognizing rsync as a protocol that defines a X-Git-Tag: v2.3.5c1~197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b43808ad50cde32283c1d9c91661fcb20b4fa0d4;p=thirdparty%2FPython%2Fcpython.git Add support in urlparse for recognizing rsync as a protocol that defines a "netloc" (i.e., network location) in its URL. Closes bug #981299. --- diff --git a/Lib/urlparse.py b/Lib/urlparse.py index 69305a73b06a..7d49bc0c7722 100644 --- a/Lib/urlparse.py +++ b/Lib/urlparse.py @@ -13,7 +13,7 @@ uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'imap', 'prospero', 'rtsp', 'rtspu', ''] uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet', 'imap', 'wais', 'file', 'mms', 'https', 'shttp', - 'snews', 'prospero', 'rtsp', 'rtspu', ''] + 'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', ''] non_hierarchical = ['gopher', 'hdl', 'mailto', 'news', 'telnet', 'wais', 'imap', 'snews', 'sip'] uses_params = ['ftp', 'hdl', 'prospero', 'http', 'imap', diff --git a/Misc/NEWS b/Misc/NEWS index a9d11abde705..c8e099207f4e 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -37,6 +37,9 @@ Extension modules Library ------- +- Bug #981299: rsync is now a recognized protocol in urlparse that uses a + "netloc" portion of a URL. + - Patch #975885: Print file name in err msg in quiet mode of compileall.py. - Bug #919012: shutil.move() raises an exception when you try to move a