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
56b0a3d8
Kaydet (Commit)
56b0a3d8
authored
Nis 07, 2013
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove redundant imports
üst
1a2ea9c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
parse.py
Lib/urllib/parse.py
+0
-9
No files found.
Lib/urllib/parse.py
Dosyayı görüntüle @
56b0a3d8
...
@@ -846,7 +846,6 @@ def splittype(url):
...
@@ -846,7 +846,6 @@ def splittype(url):
"""splittype('type:opaquestring') --> 'type', 'opaquestring'."""
"""splittype('type:opaquestring') --> 'type', 'opaquestring'."""
global
_typeprog
global
_typeprog
if
_typeprog
is
None
:
if
_typeprog
is
None
:
import
re
_typeprog
=
re
.
compile
(
'^([^/:]+):'
)
_typeprog
=
re
.
compile
(
'^([^/:]+):'
)
match
=
_typeprog
.
match
(
url
)
match
=
_typeprog
.
match
(
url
)
...
@@ -860,7 +859,6 @@ def splithost(url):
...
@@ -860,7 +859,6 @@ def splithost(url):
"""splithost('//host[:port]/path') --> 'host[:port]', '/path'."""
"""splithost('//host[:port]/path') --> 'host[:port]', '/path'."""
global
_hostprog
global
_hostprog
if
_hostprog
is
None
:
if
_hostprog
is
None
:
import
re
_hostprog
=
re
.
compile
(
'^//([^/?]*)(.*)$'
)
_hostprog
=
re
.
compile
(
'^//([^/?]*)(.*)$'
)
match
=
_hostprog
.
match
(
url
)
match
=
_hostprog
.
match
(
url
)
...
@@ -877,7 +875,6 @@ def splituser(host):
...
@@ -877,7 +875,6 @@ def splituser(host):
"""splituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'."""
"""splituser('user[:passwd]@host[:port]') --> 'user[:passwd]', 'host[:port]'."""
global
_userprog
global
_userprog
if
_userprog
is
None
:
if
_userprog
is
None
:
import
re
_userprog
=
re
.
compile
(
'^(.*)@(.*)$'
)
_userprog
=
re
.
compile
(
'^(.*)@(.*)$'
)
match
=
_userprog
.
match
(
host
)
match
=
_userprog
.
match
(
host
)
...
@@ -889,7 +886,6 @@ def splitpasswd(user):
...
@@ -889,7 +886,6 @@ def splitpasswd(user):
"""splitpasswd('user:passwd') -> 'user', 'passwd'."""
"""splitpasswd('user:passwd') -> 'user', 'passwd'."""
global
_passwdprog
global
_passwdprog
if
_passwdprog
is
None
:
if
_passwdprog
is
None
:
import
re
_passwdprog
=
re
.
compile
(
'^([^:]*):(.*)$'
,
re
.
S
)
_passwdprog
=
re
.
compile
(
'^([^:]*):(.*)$'
,
re
.
S
)
match
=
_passwdprog
.
match
(
user
)
match
=
_passwdprog
.
match
(
user
)
...
@@ -902,7 +898,6 @@ def splitport(host):
...
@@ -902,7 +898,6 @@ def splitport(host):
"""splitport('host:port') --> 'host', 'port'."""
"""splitport('host:port') --> 'host', 'port'."""
global
_portprog
global
_portprog
if
_portprog
is
None
:
if
_portprog
is
None
:
import
re
_portprog
=
re
.
compile
(
'^(.*):([0-9]+)$'
)
_portprog
=
re
.
compile
(
'^(.*):([0-9]+)$'
)
match
=
_portprog
.
match
(
host
)
match
=
_portprog
.
match
(
host
)
...
@@ -917,7 +912,6 @@ def splitnport(host, defport=-1):
...
@@ -917,7 +912,6 @@ def splitnport(host, defport=-1):
Return None if ':' but not a valid number."""
Return None if ':' but not a valid number."""
global
_nportprog
global
_nportprog
if
_nportprog
is
None
:
if
_nportprog
is
None
:
import
re
_nportprog
=
re
.
compile
(
'^(.*):(.*)$'
)
_nportprog
=
re
.
compile
(
'^(.*):(.*)$'
)
match
=
_nportprog
.
match
(
host
)
match
=
_nportprog
.
match
(
host
)
...
@@ -936,7 +930,6 @@ def splitquery(url):
...
@@ -936,7 +930,6 @@ def splitquery(url):
"""splitquery('/path?query') --> '/path', 'query'."""
"""splitquery('/path?query') --> '/path', 'query'."""
global
_queryprog
global
_queryprog
if
_queryprog
is
None
:
if
_queryprog
is
None
:
import
re
_queryprog
=
re
.
compile
(
'^(.*)
\
?([^?]*)$'
)
_queryprog
=
re
.
compile
(
'^(.*)
\
?([^?]*)$'
)
match
=
_queryprog
.
match
(
url
)
match
=
_queryprog
.
match
(
url
)
...
@@ -948,7 +941,6 @@ def splittag(url):
...
@@ -948,7 +941,6 @@ def splittag(url):
"""splittag('/path#tag') --> '/path', 'tag'."""
"""splittag('/path#tag') --> '/path', 'tag'."""
global
_tagprog
global
_tagprog
if
_tagprog
is
None
:
if
_tagprog
is
None
:
import
re
_tagprog
=
re
.
compile
(
'^(.*)#([^#]*)$'
)
_tagprog
=
re
.
compile
(
'^(.*)#([^#]*)$'
)
match
=
_tagprog
.
match
(
url
)
match
=
_tagprog
.
match
(
url
)
...
@@ -966,7 +958,6 @@ def splitvalue(attr):
...
@@ -966,7 +958,6 @@ def splitvalue(attr):
"""splitvalue('attr=value') --> 'attr', 'value'."""
"""splitvalue('attr=value') --> 'attr', 'value'."""
global
_valueprog
global
_valueprog
if
_valueprog
is
None
:
if
_valueprog
is
None
:
import
re
_valueprog
=
re
.
compile
(
'^([^=]*)=(.*)$'
)
_valueprog
=
re
.
compile
(
'^([^=]*)=(.*)$'
)
match
=
_valueprog
.
match
(
attr
)
match
=
_valueprog
.
match
(
attr
)
...
...
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