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
b1188704
Kaydet (Commit)
b1188704
authored
Şub 24, 2016
tarafından
Jason R. Coombs
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #26302: merge from 3.5
üst
d10aa2e3
102d813b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
cookies.py
Lib/http/cookies.py
+1
-1
test_http_cookies.py
Lib/test/test_http_cookies.py
+6
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/http/cookies.py
Dosyayı görüntüle @
b1188704
...
@@ -174,7 +174,7 @@ _Translator.update({
...
@@ -174,7 +174,7 @@ _Translator.update({
ord
(
'
\\
'
):
'
\\\\
'
,
ord
(
'
\\
'
):
'
\\\\
'
,
})
})
_is_legal_key
=
re
.
compile
(
'[
%
s]+'
%
_LegalChars
)
.
fullmatch
_is_legal_key
=
re
.
compile
(
'[
%
s]+'
%
re
.
escape
(
_LegalChars
)
)
.
fullmatch
def
_quote
(
str
):
def
_quote
(
str
):
r"""Quote a string for use in a cookie header.
r"""Quote a string for use in a cookie header.
...
...
Lib/test/test_http_cookies.py
Dosyayı görüntüle @
b1188704
...
@@ -210,6 +210,12 @@ class CookieTests(unittest.TestCase):
...
@@ -210,6 +210,12 @@ class CookieTests(unittest.TestCase):
C1
=
pickle
.
loads
(
pickle
.
dumps
(
C
,
protocol
=
proto
))
C1
=
pickle
.
loads
(
pickle
.
dumps
(
C
,
protocol
=
proto
))
self
.
assertEqual
(
C1
.
output
(),
expected_output
)
self
.
assertEqual
(
C1
.
output
(),
expected_output
)
def
test_illegal_chars
(
self
):
rawdata
=
"a=b; c,d=e"
C
=
cookies
.
SimpleCookie
()
with
self
.
assertRaises
(
cookies
.
CookieError
):
C
.
load
(
rawdata
)
class
MorselTests
(
unittest
.
TestCase
):
class
MorselTests
(
unittest
.
TestCase
):
"""Tests for the Morsel object."""
"""Tests for the Morsel object."""
...
...
Misc/NEWS
Dosyayı görüntüle @
b1188704
...
@@ -10,6 +10,9 @@ Release date: tba
...
@@ -10,6 +10,9 @@ Release date: tba
Core and Builtins
Core and Builtins
-----------------
-----------------
- Issue #26302: Correct behavior to reject comma as a legal character for
cookie names.
- Issue #26136: Upgrade the warning when a generator raises StopIteration
- Issue #26136: Upgrade the warning when a generator raises StopIteration
from PendingDeprecationWarning to DeprecationWarning. Patch by Anish
from PendingDeprecationWarning to DeprecationWarning. Patch by Anish
Shah.
Shah.
...
...
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