mirror of
https://github.com/python/cpython.git
synced 2025-10-06 23:21:06 +00:00
Replace boolean test with is None.
This commit is contained in:
parent
793d4b4936
commit
16e3c427f3
7 changed files with 12 additions and 12 deletions
|
@ -220,7 +220,7 @@ class POP3:
|
|||
Result when a message number argument is given is a
|
||||
single response: the "scan listing" for that message.
|
||||
"""
|
||||
if which:
|
||||
if which is not None:
|
||||
return self._shortcmd('LIST %s' % which)
|
||||
return self._longcmd('LIST')
|
||||
|
||||
|
@ -313,7 +313,7 @@ class POP3:
|
|||
in the form 'response mesgnum uid', otherwise result is
|
||||
the list ['response', ['mesgnum uid', ...], octets]
|
||||
"""
|
||||
if which:
|
||||
if which is not None:
|
||||
return self._shortcmd('UIDL %s' % which)
|
||||
return self._longcmd('UIDL')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue