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
3b4849a2
Kaydet (Commit)
3b4849a2
authored
Haz 02, 2010
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Logging: improved error reporting for BaseConfigurator.resolve().
üst
27c72e9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
config.py
Lib/logging/config.py
+15
-9
No files found.
Lib/logging/config.py
Dosyayı görüntüle @
3b4849a2
...
...
@@ -387,15 +387,21 @@ class BaseConfigurator(object):
"""
name
=
s
.
split
(
'.'
)
used
=
name
.
pop
(
0
)
found
=
self
.
importer
(
used
)
for
frag
in
name
:
used
+=
'.'
+
frag
try
:
found
=
getattr
(
found
,
frag
)
except
AttributeError
:
self
.
importer
(
used
)
found
=
getattr
(
found
,
frag
)
return
found
try
:
found
=
self
.
importer
(
used
)
for
frag
in
name
:
used
+=
'.'
+
frag
try
:
found
=
getattr
(
found
,
frag
)
except
AttributeError
:
self
.
importer
(
used
)
found
=
getattr
(
found
,
frag
)
return
found
except
ImportError
:
e
,
tb
=
sys
.
exc_info
()[
1
:]
v
=
ValueError
(
'Cannot resolve
%
r:
%
s'
%
(
s
,
e
))
v
.
__cause__
,
v
.
__traceback__
=
e
,
tb
raise
v
def
ext_convert
(
self
,
value
):
"""Default converter for the ext:// protocol."""
...
...
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