summaryrefslogtreecommitdiffstats
path: root/Lib/smtplib.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2005-02-06 06:57:08 (GMT)
committerRaymond Hettinger <python@rcn.com>2005-02-06 06:57:08 (GMT)
commitdbecd93b7203cd187c1978de1207c29d3a9a686c (patch)
treeabb7331791de7b8e85208195e0c948a76cf77b67 /Lib/smtplib.py
parent07ead1731850a9f1bd353b9330341309251099b6 (diff)
downloadcpython-dbecd93b7203cd187c1978de1207c29d3a9a686c.zip
cpython-dbecd93b7203cd187c1978de1207c29d3a9a686c.tar.gz
cpython-dbecd93b7203cd187c1978de1207c29d3a9a686c.tar.bz2
Replace list of constants with tuples of constants.
Diffstat (limited to 'Lib/smtplib.py')
-rwxr-xr-xLib/smtplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py
index 52a2e1f..5b406af 100755
--- a/Lib/smtplib.py
+++ b/Lib/smtplib.py
@@ -578,7 +578,7 @@ class SMTP:
(code, resp) = self.docmd(encode_base64(password, eol=""))
elif authmethod is None:
raise SMTPException("No suitable authentication method found.")
- if code not in [235, 503]:
+ if code not in (235, 503):
# 235 == 'Authentication successful'
# 503 == 'Error: already authenticated'
raise SMTPAuthenticationError(code, resp)