summaryrefslogtreecommitdiff
path: root/Lib/urlparse.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-03-29 21:23:25 +0000
committerGuido van Rossum <guido@python.org>1996-03-29 21:23:25 +0000
commitededb58c140c74cd805b568c50edccb213a13b1a (patch)
tree7a9bd3b6caeb1e5fdd43b3d71dfe301142dfad22 /Lib/urlparse.py
parent48766512a0b438b66e97dfdfcb933cd104baeffe (diff)
downloadcpython-git-ededb58c140c74cd805b568c50edccb213a13b1a.tar.gz
Update reference (it's now RFC 1808); added http to list of protocols
that use parameters.
Diffstat (limited to 'Lib/urlparse.py')
-rw-r--r--Lib/urlparse.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/Lib/urlparse.py b/Lib/urlparse.py
index 97a28bf4ed..08722b17d3 100644
--- a/Lib/urlparse.py
+++ b/Lib/urlparse.py
@@ -1,11 +1,5 @@
-# Parse (absolute and relative) URLs according to latest internet draft:
-
-# Uniform Resource Identifiers Working Group R. Fielding
-# INTERNET-DRAFT UC Irvine
-# Expires February 24, 1995 August 24, 1994
-#
-# Relative Uniform Resource Locators
-# <draft-ietf-uri-relative-url-00.txt>
+# Parse (absolute and relative) URLs. See RFC 1808: "Relative Uniform
+# Resource Locators", by R. Fielding, UC Irvine, June 1995.
# Standard/builtin Python modules
import string
@@ -16,7 +10,7 @@ uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'wais', 'file',
uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet', 'wais',
'prospero', '']
non_hierarchical = ['gopher', 'mailto', 'news', 'telnet', 'wais']
-uses_params = ['ftp', 'prospero', '']
+uses_params = ['ftp', 'prospero', 'http', '']
uses_query = ['http', 'wais', '']
uses_fragment = ['ftp', 'http', 'gopher', 'news', 'nntp', 'wais',
'file', 'prospero', '']