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
da1ffbc4
Kaydet (Commit)
da1ffbc4
authored
Tem 21, 2012
tarafından
Meador Inge
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #15409: Replace use of deprecated urllib.request.Request methods in http.cookijar
Patch by Flávio Ribeiro.
üst
5e36edba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
cookiejar.py
Lib/http/cookiejar.py
+4
-4
No files found.
Lib/http/cookiejar.py
Dosyayı görüntüle @
da1ffbc4
...
@@ -625,7 +625,7 @@ def request_path(request):
...
@@ -625,7 +625,7 @@ def request_path(request):
return
path
return
path
def
request_port
(
request
):
def
request_port
(
request
):
host
=
request
.
get_host
()
host
=
request
.
host
i
=
host
.
find
(
':'
)
i
=
host
.
find
(
':'
)
if
i
>=
0
:
if
i
>=
0
:
port
=
host
[
i
+
1
:]
port
=
host
[
i
+
1
:]
...
@@ -949,7 +949,7 @@ class DefaultCookiePolicy(CookiePolicy):
...
@@ -949,7 +949,7 @@ class DefaultCookiePolicy(CookiePolicy):
return
True
return
True
def
set_ok_verifiability
(
self
,
cookie
,
request
):
def
set_ok_verifiability
(
self
,
cookie
,
request
):
if
request
.
is_unverifiable
()
and
is_third_party
(
request
):
if
request
.
unverifiable
and
is_third_party
(
request
):
if
cookie
.
version
>
0
and
self
.
strict_rfc2965_unverifiable
:
if
cookie
.
version
>
0
and
self
.
strict_rfc2965_unverifiable
:
_debug
(
" third-party RFC 2965 cookie during "
_debug
(
" third-party RFC 2965 cookie during "
"unverifiable transaction"
)
"unverifiable transaction"
)
...
@@ -1088,7 +1088,7 @@ class DefaultCookiePolicy(CookiePolicy):
...
@@ -1088,7 +1088,7 @@ class DefaultCookiePolicy(CookiePolicy):
return
True
return
True
def
return_ok_verifiability
(
self
,
cookie
,
request
):
def
return_ok_verifiability
(
self
,
cookie
,
request
):
if
request
.
is_unverifiable
()
and
is_third_party
(
request
):
if
request
.
unverifiable
and
is_third_party
(
request
):
if
cookie
.
version
>
0
and
self
.
strict_rfc2965_unverifiable
:
if
cookie
.
version
>
0
and
self
.
strict_rfc2965_unverifiable
:
_debug
(
" third-party RFC 2965 cookie during unverifiable "
_debug
(
" third-party RFC 2965 cookie during unverifiable "
"transaction"
)
"transaction"
)
...
@@ -1100,7 +1100,7 @@ class DefaultCookiePolicy(CookiePolicy):
...
@@ -1100,7 +1100,7 @@ class DefaultCookiePolicy(CookiePolicy):
return
True
return
True
def
return_ok_secure
(
self
,
cookie
,
request
):
def
return_ok_secure
(
self
,
cookie
,
request
):
if
cookie
.
secure
and
request
.
get_type
()
!=
"https"
:
if
cookie
.
secure
and
request
.
type
!=
"https"
:
_debug
(
" secure cookie with non-secure request"
)
_debug
(
" secure cookie with non-secure request"
)
return
False
return
False
return
True
return
True
...
...
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