summaryrefslogtreecommitdiffstats
path: root/Lib/urlparse.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-01-06 06:51:36 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-01-06 06:51:36 (GMT)
commit4f442372ccaea501edcce67cd16028023af0d2e2 (patch)
tree3aacfe841c8fcc50fc9376e64cfc00e3618a1c0c /Lib/urlparse.py
parentb9ef4aea5eac30cfdd56578f7225e6e6907b0055 (diff)
downloadcpython-4f442372ccaea501edcce67cd16028023af0d2e2.zip
cpython-4f442372ccaea501edcce67cd16028023af0d2e2.tar.gz
cpython-4f442372ccaea501edcce67cd16028023af0d2e2.tar.bz2
SF feature #618024, urlparse fails on imap://
Diffstat (limited to 'Lib/urlparse.py')
-rw-r--r--Lib/urlparse.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/urlparse.py b/Lib/urlparse.py
index 1dec261..b8f747f 100644
--- a/Lib/urlparse.py
+++ b/Lib/urlparse.py
@@ -8,20 +8,20 @@ __all__ = ["urlparse", "urlunparse", "urljoin", "urldefrag",
"urlsplit", "urlunsplit"]
# A classification of schemes ('' means apply by default)
-uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'wais', 'file',
+uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'imap', 'wais', 'file',
'https', 'shttp',
'prospero', 'rtsp', 'rtspu', '']
-uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet', 'wais',
+uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet', 'imap', 'wais',
'file',
'https', 'shttp', 'snews',
'prospero', 'rtsp', 'rtspu', '']
non_hierarchical = ['gopher', 'hdl', 'mailto', 'news', 'telnet', 'wais',
- 'snews', 'sip',
+ 'imap', 'snews', 'sip',
]
-uses_params = ['ftp', 'hdl', 'prospero', 'http',
+uses_params = ['ftp', 'hdl', 'prospero', 'http', 'imap',
'https', 'shttp', 'rtsp', 'rtspu', 'sip',
'']
-uses_query = ['http', 'wais',
+uses_query = ['http', 'wais', 'imap',
'https', 'shttp',
'gopher', 'rtsp', 'rtspu', 'sip',
'']