mirror of
https://github.com/python/cpython.git
synced 2025-08-27 20:25:18 +00:00
Replace list of constants with tuples of constants.
This commit is contained in:
parent
07ead17318
commit
dbecd93b72
11 changed files with 29 additions and 29 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue