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
8c5e920a
Kaydet (Commit)
8c5e920a
authored
Nis 22, 2012
tarafından
Brett Cannon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge
üst
410e88d5
4c3f4789
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
handlers.py
Lib/logging/handlers.py
+1
-1
test_logging.py
Lib/test/test_logging.py
+1
-1
No files found.
Lib/logging/handlers.py
Dosyayı görüntüle @
8c5e920a
...
@@ -872,7 +872,7 @@ class SMTPHandler(logging.Handler):
...
@@ -872,7 +872,7 @@ class SMTPHandler(logging.Handler):
A handler class which sends an SMTP email for each logging event.
A handler class which sends an SMTP email for each logging event.
"""
"""
def
__init__
(
self
,
mailhost
,
fromaddr
,
toaddrs
,
subject
,
def
__init__
(
self
,
mailhost
,
fromaddr
,
toaddrs
,
subject
,
credentials
=
None
,
secure
=
None
,
timeout
=
1
.0
):
credentials
=
None
,
secure
=
None
,
timeout
=
5
.0
):
"""
"""
Initialize the handler.
Initialize the handler.
...
...
Lib/test/test_logging.py
Dosyayı görüntüle @
8c5e920a
...
@@ -930,7 +930,7 @@ class SMTPHandlerTest(BaseTest):
...
@@ -930,7 +930,7 @@ class SMTPHandlerTest(BaseTest):
sockmap
)
sockmap
)
server
.
start
()
server
.
start
()
addr
=
(
'localhost'
,
server
.
port
)
addr
=
(
'localhost'
,
server
.
port
)
h
=
logging
.
handlers
.
SMTPHandler
(
addr
,
'me'
,
'you'
,
'Log'
)
h
=
logging
.
handlers
.
SMTPHandler
(
addr
,
'me'
,
'you'
,
'Log'
,
timeout
=
5.0
)
self
.
assertEqual
(
h
.
toaddrs
,
[
'you'
])
self
.
assertEqual
(
h
.
toaddrs
,
[
'you'
])
self
.
messages
=
[]
self
.
messages
=
[]
r
=
logging
.
makeLogRecord
({
'msg'
:
'Hello'
})
r
=
logging
.
makeLogRecord
({
'msg'
:
'Hello'
})
...
...
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