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
1b5f58d1
Kaydet (Commit)
1b5f58d1
authored
Tem 25, 2014
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #21990: Cleanup unnecessary inner class definition in saxutils.
üst
2ce9ddd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
saxutils.py
Lib/xml/sax/saxutils.py
+8
-5
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/xml/sax/saxutils.py
Dosyayı görüntüle @
1b5f58d1
...
@@ -98,14 +98,17 @@ def _gettextwriter(out, encoding):
...
@@ -98,14 +98,17 @@ def _gettextwriter(out, encoding):
except
AttributeError
:
except
AttributeError
:
pass
pass
# wrap a binary writer with TextIOWrapper
# wrap a binary writer with TextIOWrapper
class
UnbufferedTextIOWrapper
(
io
.
TextIOWrapper
):
return
_UnbufferedTextIOWrapper
(
buffer
,
encoding
=
encoding
,
def
write
(
self
,
s
):
super
(
UnbufferedTextIOWrapper
,
self
)
.
write
(
s
)
self
.
flush
()
return
UnbufferedTextIOWrapper
(
buffer
,
encoding
=
encoding
,
errors
=
'xmlcharrefreplace'
,
errors
=
'xmlcharrefreplace'
,
newline
=
'
\n
'
)
newline
=
'
\n
'
)
class
_UnbufferedTextIOWrapper
(
io
.
TextIOWrapper
):
def
write
(
self
,
s
):
super
(
_UnbufferedTextIOWrapper
,
self
)
.
write
(
s
)
self
.
flush
()
class
XMLGenerator
(
handler
.
ContentHandler
):
class
XMLGenerator
(
handler
.
ContentHandler
):
def
__init__
(
self
,
out
=
None
,
encoding
=
"iso-8859-1"
):
def
__init__
(
self
,
out
=
None
,
encoding
=
"iso-8859-1"
):
...
...
Misc/NEWS
Dosyayı görüntüle @
1b5f58d1
...
@@ -17,6 +17,9 @@ Library
...
@@ -17,6 +17,9 @@ Library
socket.error() exceptions with blocking I/O errors: EAGAIN, EALREADY,
socket.error() exceptions with blocking I/O errors: EAGAIN, EALREADY,
EINPROGRESS, or EWOULDBLOCK.
EINPROGRESS, or EWOULDBLOCK.
- Issue #21990: Clean-up unnecessary and slow inner class definition in
saxutils (Contributed by Alex Gaynor).
- Issue #1730136: Fix the comparison between a tkFont.Font and an object of
- Issue #1730136: Fix the comparison between a tkFont.Font and an object of
another kind.
another kind.
...
...
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