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
3505bd82
Kaydet (Commit)
3505bd82
authored
Mar 18, 2015
tarafından
Vinay Sajip
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #23207: merged fix from 3.4.
üst
e42ccd2b
d55436ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
__init__.py
Lib/logging/__init__.py
+1
-1
test_logging.py
Lib/test/test_logging.py
+4
-0
No files found.
Lib/logging/__init__.py
Dosyayı görüntüle @
3505bd82
...
@@ -1734,8 +1734,8 @@ def basicConfig(**kwargs):
...
@@ -1734,8 +1734,8 @@ def basicConfig(**kwargs):
"specified together with 'handlers'"
)
"specified together with 'handlers'"
)
if
handlers
is
None
:
if
handlers
is
None
:
filename
=
kwargs
.
pop
(
"filename"
,
None
)
filename
=
kwargs
.
pop
(
"filename"
,
None
)
mode
=
kwargs
.
pop
(
"filemode"
,
'a'
)
if
filename
:
if
filename
:
mode
=
kwargs
.
pop
(
"filemode"
,
'a'
)
h
=
FileHandler
(
filename
,
mode
)
h
=
FileHandler
(
filename
,
mode
)
else
:
else
:
stream
=
kwargs
.
pop
(
"stream"
,
None
)
stream
=
kwargs
.
pop
(
"stream"
,
None
)
...
...
Lib/test/test_logging.py
Dosyayı görüntüle @
3505bd82
...
@@ -3607,6 +3607,10 @@ class BasicConfigTest(unittest.TestCase):
...
@@ -3607,6 +3607,10 @@ class BasicConfigTest(unittest.TestCase):
handlers
=
handlers
)
handlers
=
handlers
)
assertRaises
(
ValueError
,
logging
.
basicConfig
,
stream
=
stream
,
assertRaises
(
ValueError
,
logging
.
basicConfig
,
stream
=
stream
,
handlers
=
handlers
)
handlers
=
handlers
)
# Issue 23207: test for invalid kwargs
assertRaises
(
ValueError
,
logging
.
basicConfig
,
loglevel
=
logging
.
INFO
)
# Should pop both filename and filemode even if filename is None
logging
.
basicConfig
(
filename
=
None
,
filemode
=
'a'
)
def
test_handlers
(
self
):
def
test_handlers
(
self
):
handlers
=
[
handlers
=
[
...
...
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