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
936efc79
Kaydet (Commit)
936efc79
authored
Haz 11, 2010
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #8924: logging: Improved error handling for Unicode in exception text.
üst
cca3a3f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
__init__.py
Lib/logging/__init__.py
+7
-1
NEWS
Misc/NEWS
+1
-0
No files found.
Lib/logging/__init__.py
Dosyayı görüntüle @
936efc79
...
@@ -473,7 +473,13 @@ class Formatter(object):
...
@@ -473,7 +473,13 @@ class Formatter(object):
if
record
.
exc_text
:
if
record
.
exc_text
:
if
s
[
-
1
:]
!=
"
\n
"
:
if
s
[
-
1
:]
!=
"
\n
"
:
s
=
s
+
"
\n
"
s
=
s
+
"
\n
"
s
=
s
+
record
.
exc_text
try
:
s
=
s
+
record
.
exc_text
except
UnicodeError
:
# Sometimes filenames have non-ASCII chars, which can lead
# to errors when s is Unicode and record.exc_text is str
# See issue 8924
s
=
s
+
record
.
exc_text
.
decode
(
sys
.
getfilesystemencoding
())
return
s
return
s
#
#
...
...
Misc/NEWS
Dosyayı görüntüle @
936efc79
...
@@ -21,6 +21,7 @@ Core and Builtins
...
@@ -21,6 +21,7 @@ Core and Builtins
Library
Library
-------
-------
- Issue #8924: logging: Improved error handling for Unicode in exception text.
- Issue #8948: cleanup functions and class / module setups and teardowns are
- Issue #8948: cleanup functions and class / module setups and teardowns are
now honored in unittest debug methods.
now honored in unittest debug methods.
...
...
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