mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Issue #14622: Increased default timeout for SMTPHandler.
This commit is contained in:
parent
6240bd11ca
commit
26308da174
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue