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
1e76e864
Kaydet (Commit)
1e76e864
authored
Mar 25, 2013
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #12718: Set importer on instance if Python function, to avoid bad interaction with winpdb.
üst
cce5b04c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
config.py
Lib/logging/config.py
+6
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/logging/config.py
Dosyayı görüntüle @
1e76e864
...
@@ -379,6 +379,12 @@ class BaseConfigurator(object):
...
@@ -379,6 +379,12 @@ class BaseConfigurator(object):
def
__init__
(
self
,
config
):
def
__init__
(
self
,
config
):
self
.
config
=
ConvertingDict
(
config
)
self
.
config
=
ConvertingDict
(
config
)
self
.
config
.
configurator
=
self
self
.
config
.
configurator
=
self
# Issue 12718: winpdb replaces __import__ with a Python function, which
# ends up being treated as a bound method. To avoid problems, we
# set the importer on the instance, but leave it defined in the class
# so existing code doesn't break
if
type
(
__import__
)
==
types
.
FunctionType
:
self
.
importer
=
__import__
def
resolve
(
self
,
s
):
def
resolve
(
self
,
s
):
"""
"""
...
...
Misc/NEWS
Dosyayı görüntüle @
1e76e864
...
@@ -247,6 +247,9 @@ Core and Builtins
...
@@ -247,6 +247,9 @@ Core and Builtins
Library
Library
-------
-------
- Issue #12718: Fix interaction with winpdb overriding __import__ by setting
importer attribute on BaseConfigurator instance.
- Issue #17521: Corrected non-enabling of logger following two calls to
- Issue #17521: Corrected non-enabling of logger following two calls to
fileConfig().
fileConfig().
...
...
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