Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
c2c62b13
Commit
c2c62b13
authored
Oct 17, 2014
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Plain Diff
Closes #22646: Accept list as well as tuple to support initialisation via dictConfig().
parents
353474fc
16c41ab4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Lib/logging/handlers.py
Lib/logging/handlers.py
+2
-2
No files found.
Lib/logging/handlers.py
View file @
c2c62b13
...
...
@@ -931,11 +931,11 @@ class SMTPHandler(logging.Handler):
default is one second).
"""
logging
.
Handler
.
__init__
(
self
)
if
isinstance
(
mailhost
,
tuple
):
if
isinstance
(
mailhost
,
(
list
,
tuple
)
):
self
.
mailhost
,
self
.
mailport
=
mailhost
else
:
self
.
mailhost
,
self
.
mailport
=
mailhost
,
None
if
isinstance
(
credentials
,
tuple
):
if
isinstance
(
credentials
,
(
list
,
tuple
)
):
self
.
username
,
self
.
password
=
credentials
else
:
self
.
username
=
None
...
...
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