]> granicus.if.org Git - python/commitdiff
Closes #9374: add back now-unused module attributes; removing them is a backward...
authorGeorg Brandl <georg@python.org>
Fri, 24 Aug 2012 16:17:28 +0000 (18:17 +0200)
committerGeorg Brandl <georg@python.org>
Fri, 24 Aug 2012 16:17:28 +0000 (18:17 +0200)
Lib/urlparse.py

index 8a207565030567ea6507a617787541a7b10c416d..abc53c616a8ac9312ba5230a13d471a48b53128d 100644 (file)
@@ -44,6 +44,16 @@ uses_params = ['ftp', 'hdl', 'prospero', 'http', 'imap',
                'https', 'shttp', 'rtsp', 'rtspu', 'sip', 'sips',
                'mms', '', 'sftp']
 
+# These are not actually used anymore, but should stay for backwards
+# compatibility.  (They are undocumented, but have a public-looking name.)
+non_hierarchical = ['gopher', 'hdl', 'mailto', 'news',
+                    'telnet', 'wais', 'imap', 'snews', 'sip', 'sips']
+uses_query = ['http', 'wais', 'imap', 'https', 'shttp', 'mms',
+              'gopher', 'rtsp', 'rtspu', 'sip', 'sips', '']
+uses_fragment = ['ftp', 'hdl', 'http', 'gopher', 'news',
+                 'nntp', 'wais', 'https', 'shttp', 'snews',
+                 'file', 'prospero', '']
+
 # Characters valid in scheme names
 scheme_chars = ('abcdefghijklmnopqrstuvwxyz'
                 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'