summaryrefslogtreecommitdiffstats
path: root/Lib/urlparse.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-08-24 16:17:28 (GMT)
committerGeorg Brandl <georg@python.org>2012-08-24 16:17:28 (GMT)
commite991236b4d2f733399b2bec7b1400f7f788d75cb (patch)
treee5c0eb009763138e8d060617d879f863fb74d938 /Lib/urlparse.py
parent8622f09d98c2f139df451064b9bc142c22cf7112 (diff)
downloadcpython-e991236b4d2f733399b2bec7b1400f7f788d75cb.zip
cpython-e991236b4d2f733399b2bec7b1400f7f788d75cb.tar.gz
cpython-e991236b4d2f733399b2bec7b1400f7f788d75cb.tar.bz2
Closes #9374: add back now-unused module attributes; removing them is a backward compatibility issue, since they have a public-seeming name.
Diffstat (limited to 'Lib/urlparse.py')
-rw-r--r--Lib/urlparse.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/urlparse.py b/Lib/urlparse.py
index 8a20756..abc53c6 100644
--- a/Lib/urlparse.py
+++ b/Lib/urlparse.py
@@ -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'