[Python-checkins] r42109 - in python/branches/release24-maint: Lib/urlparse.py Misc/NEWS
Guido van Rossum
guido at python.org
Fri Jan 20 19:27:00 CET 2006
This sounds awfully close to a feature. It's a slippery slope.
On 1/20/06, georg.brandl <python-checkins at python.org> wrote:
> Author: georg.brandl
> Date: Fri Jan 20 18:24:34 2006
> New Revision: 42109
>
> Modified:
> python/branches/release24-maint/Lib/urlparse.py
> python/branches/release24-maint/Misc/NEWS
> Log:
> Bug #1407902: Added support for sftp:// URIs to urlparse.
>
>
> Modified: python/branches/release24-maint/Lib/urlparse.py
> ==============================================================================
> --- python/branches/release24-maint/Lib/urlparse.py (original)
> +++ python/branches/release24-maint/Lib/urlparse.py Fri Jan 20 18:24:34 2006
> @@ -9,22 +9,22 @@
>
> # A classification of schemes ('' means apply by default)
> uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'imap',
> - 'wais', 'file', 'https', 'shttp', 'mms',
> - 'prospero', 'rtsp', 'rtspu', '']
> + 'wais', 'file', 'https', 'shttp', 'mms',
> + 'prospero', 'rtsp', 'rtspu', '', 'sftp']
> uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet',
> - 'imap', 'wais', 'file', 'mms', 'https', 'shttp',
> - 'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '',
> - 'svn', 'svn+ssh']
> + 'imap', 'wais', 'file', 'mms', 'https', 'shttp',
> + 'snews', 'prospero', 'rtsp', 'rtspu', 'rsync', '',
> + 'svn', 'svn+ssh', 'sftp']
> non_hierarchical = ['gopher', 'hdl', 'mailto', 'news',
> - 'telnet', 'wais', 'imap', 'snews', 'sip']
> + 'telnet', 'wais', 'imap', 'snews', 'sip']
> uses_params = ['ftp', 'hdl', 'prospero', 'http', 'imap',
> - 'https', 'shttp', 'rtsp', 'rtspu', 'sip',
> - 'mms', '']
> + 'https', 'shttp', 'rtsp', 'rtspu', 'sip',
> + 'mms', '', 'sftp']
> uses_query = ['http', 'wais', 'imap', 'https', 'shttp', 'mms',
> - 'gopher', 'rtsp', 'rtspu', 'sip', '']
> + 'gopher', 'rtsp', 'rtspu', 'sip', '']
> uses_fragment = ['ftp', 'hdl', 'http', 'gopher', 'news',
> - 'nntp', 'wais', 'https', 'shttp', 'snews',
> - 'file', 'prospero', '']
> + 'nntp', 'wais', 'https', 'shttp', 'snews',
> + 'file', 'prospero', '']
>
> # Characters valid in scheme names
> scheme_chars = ('abcdefghijklmnopqrstuvwxyz'
>
> Modified: python/branches/release24-maint/Misc/NEWS
> ==============================================================================
> --- python/branches/release24-maint/Misc/NEWS (original)
> +++ python/branches/release24-maint/Misc/NEWS Fri Jan 20 18:24:34 2006
> @@ -68,6 +68,8 @@
> Library
> -------
>
> +- Bug #1407902: Added support for sftp:// URIs to urlparse.
> +
> - Bug #1371247: Update Windows locale identifiers in locale.py.
>
> - Bug #1394565: SimpleHTTPServer now doesn't choke on query parameters
> _______________________________________________
> Python-checkins mailing list
> Python-checkins at python.org
> http://mail.python.org/mailman/listinfo/python-checkins
>
--
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-checkins
mailing list