diff options
author | Georg Brandl <georg@python.org> | 2012-08-24 16:15:29 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-08-24 16:15:29 (GMT) |
commit | a61b09f406fe5bada60af5d2e23a75b9de87ebb5 (patch) | |
tree | 359203eb4c7fb5bde548ade10619822599e8063d /Lib/urllib/parse.py | |
parent | 638d40b4337808f5e7c3f415f49270185c893321 (diff) | |
download | cpython-a61b09f406fe5bada60af5d2e23a75b9de87ebb5.zip cpython-a61b09f406fe5bada60af5d2e23a75b9de87ebb5.tar.gz cpython-a61b09f406fe5bada60af5d2e23a75b9de87ebb5.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/urllib/parse.py')
-rw-r--r-- | Lib/urllib/parse.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/urllib/parse.py b/Lib/urllib/parse.py index c8eddf2..4811759 100644 --- a/Lib/urllib/parse.py +++ b/Lib/urllib/parse.py @@ -48,6 +48,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' |