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
a0e5d981
Kaydet (Commit)
a0e5d981
authored
Agu 03, 2015
tarafından
Robert Collins
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #23888: Handle fractional time in cookie expiry. Patch by ssh.
üst
43cbbe21
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
cookiejar.py
Lib/http/cookiejar.py
+1
-1
test_http_cookiejar.py
Lib/test/test_http_cookiejar.py
+9
-0
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/http/cookiejar.py
Dosyayı görüntüle @
a0e5d981
...
...
@@ -758,7 +758,7 @@ class Cookie:
):
if
version
is
not
None
:
version
=
int
(
version
)
if
expires
is
not
None
:
expires
=
int
(
expires
)
if
expires
is
not
None
:
expires
=
int
(
float
(
expires
)
)
if
port
is
None
and
port_specified
is
True
:
raise
ValueError
(
"if port is None, port_specified must be false"
)
...
...
Lib/test/test_http_cookiejar.py
Dosyayı görüntüle @
a0e5d981
...
...
@@ -566,6 +566,15 @@ class CookieTests(unittest.TestCase):
self
.
assertEqual
(
len
(
c
),
1
)
self
.
assertIn
(
'spam="bar"'
,
h
)
# test if fractional expiry is accepted
cookie
=
Cookie
(
0
,
"name"
,
"value"
,
None
,
False
,
"www.python.org"
,
True
,
False
,
"/"
,
False
,
False
,
"1444312383.018307"
,
False
,
None
,
None
,
{})
self
.
assertEqual
(
cookie
.
expires
,
1444312383
)
# XXX RFC 2965 expiry rules (some apply to V0 too)
def
test_default_path
(
self
):
...
...
Misc/NEWS
Dosyayı görüntüle @
a0e5d981
...
...
@@ -66,6 +66,8 @@ Core and Builtins
Library
-------
-
Issue
#
23888
:
Handle
fractional
time
in
cookie
expiry
.
Patch
by
ssh
.
-
Issue
#
23652
:
Make
it
possible
to
compile
the
select
module
against
the
libc
headers
from
the
Linux
Standard
Base
,
which
do
not
include
some
EPOLL
macros
.
Patch
by
Matt
Frank
.
...
...
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