diff Lib/urlparse.py @ 27121:7ec771893410 legacy-trunk

* add mms (windows media) as another scheme * reformat schemes to 80 columns
author Skip Montanaro <skip@pobox.com>
date Mon, 06 Jan 2003 20:27:03 +0000
parents 4306c665f857
children 6dfdb1c0308a
line wrap: on
line diff
--- a/Lib/urlparse.py	Mon Jan 06 20:04:17 2003 +0000
+++ b/Lib/urlparse.py	Mon Jan 06 20:27:03 2003 +0000
@@ -8,26 +8,22 @@
            "urlsplit", "urlunsplit"]
 
 # A classification of schemes ('' means apply by default)
-uses_relative = dict.fromkeys(['ftp', 'http', 'gopher', 'nntp', 'imap', 'wais', 'file',
-                 'https', 'shttp',
-                 'prospero', 'rtsp', 'rtspu', ''])
-uses_netloc = dict.fromkeys(['ftp', 'http', 'gopher', 'nntp', 'telnet', 'imap', 'wais',
-               'file',
-               'https', 'shttp', 'snews',
-               'prospero', 'rtsp', 'rtspu', ''])
-non_hierarchical = dict.fromkeys(['gopher', 'hdl', 'mailto', 'news', 'telnet', 'wais',
-                    'imap', 'snews', 'sip',
-                    ])
+uses_relative = dict.fromkeys(['ftp', 'http', 'gopher', 'nntp', 'imap',
+                               'wais', 'file', 'https', 'shttp', 'mms',
+                               'prospero', 'rtsp', 'rtspu', ''])
+uses_netloc = dict.fromkeys(['ftp', 'http', 'gopher', 'nntp', 'telnet',
+                             'imap', 'wais', 'file', 'mms', 'https', 'shttp',
+                             'snews', 'prospero', 'rtsp', 'rtspu', ''])
+non_hierarchical = dict.fromkeys(['gopher', 'hdl', 'mailto', 'news',
+                                  'telnet', 'wais', 'imap', 'snews', 'sip'])
 uses_params = dict.fromkeys(['ftp', 'hdl', 'prospero', 'http', 'imap',
-               'https', 'shttp', 'rtsp', 'rtspu', 'sip',
-               ''])
-uses_query = dict.fromkeys(['http', 'wais', 'imap',
-              'https', 'shttp',
-              'gopher', 'rtsp', 'rtspu', 'sip',
-              ''])
-uses_fragment = dict.fromkeys(['ftp', 'hdl', 'http', 'gopher', 'news', 'nntp', 'wais',
-                 'https', 'shttp', 'snews',
-                 'file', 'prospero', ''])
+                             'https', 'shttp', 'rtsp', 'rtspu', 'sip',
+                             'mms', ''])
+uses_query = dict.fromkeys(['http', 'wais', 'imap', 'https', 'shttp', 'mms',
+                            'gopher', 'rtsp', 'rtspu', 'sip', ''])
+uses_fragment = dict.fromkeys(['ftp', 'hdl', 'http', 'gopher', 'news',
+                               'nntp', 'wais', 'https', 'shttp', 'snews',
+                               'file', 'prospero', ''])
 
 # Characters valid in scheme names
 scheme_chars = ('abcdefghijklmnopqrstuvwxyz'