Replace boolean test with is None.

This commit is contained in:
Raymond Hettinger 2002-06-01 16:07:16 +00:00
parent 793d4b4936
commit 16e3c427f3
7 changed files with 12 additions and 12 deletions

View file

@ -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')