diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-04-17 14:30:53 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-04-17 14:30:53 (GMT) |
commit | 420ec8a0cd0f63b432fe3603a0531632ad6e05f3 (patch) | |
tree | 3baa6528e40c4bb8cadc4b09fc344045dfa66e7c /Lib | |
parent | e0e8a87d7e58d1205cc727cc513cc21b045bb088 (diff) | |
download | cpython-420ec8a0cd0f63b432fe3603a0531632ad6e05f3.zip cpython-420ec8a0cd0f63b432fe3603a0531632ad6e05f3.tar.gz cpython-420ec8a0cd0f63b432fe3603a0531632ad6e05f3.tar.bz2 |
Fix Issue5650 - Update the RFC List in the urlparse module.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/urlparse.py | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/Lib/urlparse.py b/Lib/urlparse.py index c169f38..8c37dff 100644 --- a/Lib/urlparse.py +++ b/Lib/urlparse.py @@ -1,7 +1,30 @@ """Parse (absolute and relative) URLs. -See RFC 1808: "Relative Uniform Resource Locators", by R. Fielding, -UC Irvine, June 1995. +urlparse module is based upon the following RFC specifications. + +RFC 3986 (STD66): "Uniform Resource Identifiers" by T. Berners-Lee, R. Fielding +and L. Masinter, January 2005. + +RFC 2732 : "Format for Literal IPv6 Addresses in URL's by R.Hinden, B.Carpenter +and L.Masinter, December 1999. + +RFC2396: "Uniform Resource Identifiers (URI)": Generic Syntax by T. +Berners-Lee, R. Fielding, and L. Masinter, August 1998. + +RFC2368: "The mailto URL scheme", by P.Hoffman , L Masinter, J. Zwinski, July 1998. + +RFC 1808: "Relative Uniform Resource Locators", by R. Fielding, UC Irvine, June +1995. + +RFC1738: "Uniform Resource Locators (URL)" by T. Berners-Lee, L. Masinter, M. +McCahill, December 1994 + +RFC 3986 is considered the current standard and any changes to urlparse module +should conform to this. urlparse module is not entirely compliant with this. +The defacto scenarios of parsing are considered sometimes and for backward +compatiblity purposes, older RFC uses of parsing are retained. The testcases in +test_urlparse.py provides a good indicator of parsing behavior. + """ __all__ = ["urlparse", "urlunparse", "urljoin", "urldefrag", |