Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
ededb58c
Kaydet (Commit)
ededb58c
authored
Mar 29, 1996
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update reference (it's now RFC 1808); added http to list of protocols
that use parameters.
üst
48766512
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
urlparse.py
Lib/urlparse.py
+3
-9
No files found.
Lib/urlparse.py
Dosyayı görüntüle @
ededb58c
# 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'
,
''
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment