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
b678ce5a
Kaydet (Commit)
b678ce5a
authored
May 18, 2006
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Little cleanup
üst
fad65594
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
cookielib.py
Lib/cookielib.py
+2
-2
urllib2.py
Lib/urllib2.py
+2
-2
No files found.
Lib/cookielib.py
Dosyayı görüntüle @
b678ce5a
...
...
@@ -36,13 +36,13 @@ except ImportError:
import
httplib
# only for the default HTTP port
from
calendar
import
timegm
debug
=
0
# set to t
rue to enable debugging via the logging module
debug
=
False
# set to T
rue to enable debugging via the logging module
logger
=
None
def
_debug
(
*
args
):
global
logger
if
not
debug
:
return
global
logger
if
not
logger
:
import
logging
logger
=
logging
.
getLogger
(
"cookielib"
)
...
...
Lib/urllib2.py
Dosyayı görüntüle @
b678ce5a
...
...
@@ -165,7 +165,7 @@ class GopherError(URLError):
pass
# copied from cookielib.py
cut_port_re
=
re
.
compile
(
r":\d+$"
)
_
cut_port_re
=
re
.
compile
(
r":\d+$"
)
def
request_host
(
request
):
"""Return request-host, as defined by RFC 2965.
...
...
@@ -179,7 +179,7 @@ def request_host(request):
host
=
request
.
get_header
(
"Host"
,
""
)
# remove port, if present
host
=
cut_port_re
.
sub
(
""
,
host
,
1
)
host
=
_
cut_port_re
.
sub
(
""
,
host
,
1
)
return
host
.
lower
()
class
Request
:
...
...
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