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
8cc80f1d
Kaydet (Commit)
8cc80f1d
authored
Tem 16, 2015
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge 3.4
üst
a3626bc5
579db160
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
multibytecodec_support.py
Lib/test/multibytecodec_support.py
+7
-0
NEWS
Misc/NEWS
+2
-0
multibytecodec.c
Modules/cjkcodecs/multibytecodec.c
+3
-0
No files found.
Lib/test/multibytecodec_support.py
Dosyayı görüntüle @
8cc80f1d
...
...
@@ -270,6 +270,13 @@ class TestBase:
self
.
assertEqual
(
ostream
.
getvalue
(),
self
.
tstring
[
0
])
def
test_streamwriter_reset_no_pending
(
self
):
# Issue #23247: Calling reset() on a fresh StreamWriter instance
# (without pending data) must not crash
stream
=
BytesIO
()
writer
=
self
.
writer
(
stream
)
writer
.
reset
()
class
TestBase_Mapping
(
unittest
.
TestCase
):
pass_enctest
=
[]
...
...
Misc/NEWS
Dosyayı görüntüle @
8cc80f1d
...
...
@@ -169,6 +169,8 @@ Core and Builtins
Library
-------
- Issue #23247: Fix a crash in the StreamWriter.reset() of CJK codecs.
- Issue #24270: Add math.isclose() and cmath.isclose() functions as per PEP 485.
Contributed by Chris Barker and Tal Einat.
...
...
Modules/cjkcodecs/multibytecodec.c
Dosyayı görüntüle @
8cc80f1d
...
...
@@ -1685,6 +1685,9 @@ _multibytecodec_MultibyteStreamWriter_reset_impl(MultibyteStreamWriterObject *se
{
PyObject
*
pwrt
;
if
(
!
self
->
pending
)
Py_RETURN_NONE
;
pwrt
=
multibytecodec_encode
(
self
->
codec
,
&
self
->
state
,
self
->
pending
,
NULL
,
self
->
errors
,
MBENC_FLUSH
|
MBENC_RESET
);
...
...
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