Issue #22646: Accept list as well as tuple to support initialisation via dictConfig().
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py
index b7bf931..201d2b5 100644
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -889,11 +889,11 @@
certificate file. (This tuple is passed to the `starttls` method).
"""
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