summaryrefslogtreecommitdiff
path: root/Lib/poplib.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-06-01 16:07:16 +0000
committerRaymond Hettinger <python@rcn.com>2002-06-01 16:07:16 +0000
commit16e3c427f35589ac3b83e8c13a8ec6495ec6cfa1 (patch)
treed48f5e5b73a5124cabe347106a331ad8085c0064 /Lib/poplib.py
parent793d4b49361a010e4baa485ec77e3adc430f0236 (diff)
downloadcpython-git-16e3c427f35589ac3b83e8c13a8ec6495ec6cfa1.tar.gz
Replace boolean test with is None.
Diffstat (limited to 'Lib/poplib.py')
-rw-r--r--Lib/poplib.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/poplib.py b/Lib/poplib.py
index 052504302e..0b22b2e4ef 100644
--- a/Lib/poplib.py
+++ b/Lib/poplib.py
@@ -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')