mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Update reference (it's now RFC 1808); added http to list of protocols
that use parameters.
This commit is contained in:
parent
48766512a0
commit
ededb58c14
1 changed files with 3 additions and 9 deletions
|
@ -1,11 +1,5 @@
|
||||||
# Parse (absolute and relative) URLs according to latest internet draft:
|
# Parse (absolute and relative) URLs. See RFC 1808: "Relative Uniform
|
||||||
|
# Resource Locators", by R. Fielding, UC Irvine, June 1995.
|
||||||
# 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>
|
|
||||||
|
|
||||||
# Standard/builtin Python modules
|
# Standard/builtin Python modules
|
||||||
import string
|
import string
|
||||||
|
@ -16,7 +10,7 @@ uses_relative = ['ftp', 'http', 'gopher', 'nntp', 'wais', 'file',
|
||||||
uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet', 'wais',
|
uses_netloc = ['ftp', 'http', 'gopher', 'nntp', 'telnet', 'wais',
|
||||||
'prospero', '']
|
'prospero', '']
|
||||||
non_hierarchical = ['gopher', 'mailto', 'news', 'telnet', 'wais']
|
non_hierarchical = ['gopher', 'mailto', 'news', 'telnet', 'wais']
|
||||||
uses_params = ['ftp', 'prospero', '']
|
uses_params = ['ftp', 'prospero', 'http', '']
|
||||||
uses_query = ['http', 'wais', '']
|
uses_query = ['http', 'wais', '']
|
||||||
uses_fragment = ['ftp', 'http', 'gopher', 'news', 'nntp', 'wais',
|
uses_fragment = ['ftp', 'http', 'gopher', 'news', 'nntp', 'wais',
|
||||||
'file', 'prospero', '']
|
'file', 'prospero', '']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue