summaryrefslogtreecommitdiffstats
path: root/Lib/logging
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-04-22 17:16:14 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-04-22 17:16:14 (GMT)
commit26308da1749b13910f7659a6056d2a04b0fb8077 (patch)
tree40650d2a030b7f92c214879c62bcef89f57a0588 /Lib/logging
parent6240bd11ca9ced8b0bfda3ef020c3a9179789444 (diff)
downloadcpython-26308da1749b13910f7659a6056d2a04b0fb8077.zip
cpython-26308da1749b13910f7659a6056d2a04b0fb8077.tar.gz
cpython-26308da1749b13910f7659a6056d2a04b0fb8077.tar.bz2
Issue #14622: Increased default timeout for SMTPHandler.
Diffstat (limited to 'Lib/logging')
-rw-r--r--Lib/logging/handlers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py
index d0e1425..9c63797 100644
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -872,7 +872,7 @@ class SMTPHandler(logging.Handler):
A handler class which sends an SMTP email for each logging event.
"""
def __init__(self, mailhost, fromaddr, toaddrs, subject,
- credentials=None, secure=None, timeout=1.0):
+ credentials=None, secure=None, timeout=5.0):
"""
Initialize the handler.