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
0f6eac2a
Kaydet (Commit)
0f6eac2a
authored
Haz 21, 2009
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #6314: logging.basicConfig() performs extra checks on the "level" argument.
üst
2a998fab
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
+4
-0
NEWS
Misc/NEWS
+4
-1
No files found.
Lib/logging/__init__.py
Dosyayı görüntüle @
0f6eac2a
...
@@ -1396,6 +1396,10 @@ def basicConfig(**kwargs):
...
@@ -1396,6 +1396,10 @@ def basicConfig(**kwargs):
root
.
addHandler
(
hdlr
)
root
.
addHandler
(
hdlr
)
level
=
kwargs
.
get
(
"level"
)
level
=
kwargs
.
get
(
"level"
)
if
level
is
not
None
:
if
level
is
not
None
:
if
str
(
level
)
==
level
:
# If a string was passed, do more checks
if
level
not
in
_levelNames
:
raise
ValueError
(
"Unknown level:
%
r"
%
level
)
level
=
_levelNames
[
level
]
root
.
setLevel
(
level
)
root
.
setLevel
(
level
)
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
...
...
Misc/NEWS
Dosyayı görüntüle @
0f6eac2a
...
@@ -15,12 +15,15 @@ Core and Builtins
...
@@ -15,12 +15,15 @@ Core and Builtins
Library
Library
-------
-------
- Issue #6314: logging.basicConfig() performs extra checks on the "level"
argument.
- Issue #6274: Fixed possible file descriptors leak in subprocess.py
- Issue #6274: Fixed possible file descriptors leak in subprocess.py
- Accessing io.StringIO.buffer now raises an AttributeError instead of
- Accessing io.StringIO.buffer now raises an AttributeError instead of
io.UnsupportedOperation.
io.UnsupportedOperation.
- Issue #6271: mmap tried to close invalid file handle (-1) when an
n
onymous.
- Issue #6271: mmap tried to close invalid file handle (-1) when anonymous.
(On Unix)
(On Unix)
...
...
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