summaryrefslogtreecommitdiffstats
path: root/Lib/poplib.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-09-14 17:36:51 (GMT)
committerGuido van Rossum <guido@python.org>1998-09-14 17:36:51 (GMT)
commit8d5bef7fb88d4f6b548601afad43cfe2fe1995e0 (patch)
tree36475308f052471475c386aeff1bf44ce350f8c3 /Lib/poplib.py
parent4117e5428bf1ff3d26d23bd77472265412473ad9 (diff)
downloadcpython-8d5bef7fb88d4f6b548601afad43cfe2fe1995e0.zip
cpython-8d5bef7fb88d4f6b548601afad43cfe2fe1995e0.tar.gz
cpython-8d5bef7fb88d4f6b548601afad43cfe2fe1995e0.tar.bz2
There was a confusion in my checkin of the code to support list() with
and without a message number argument: the argument was called 'msg' but the code expected it to be called 'which'. In line with the other methods, I've renamed the argument to 'which', and adapted the doc string not to refer to 'msg'.
Diffstat (limited to 'Lib/poplib.py')
-rw-r--r--Lib/poplib.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/poplib.py b/Lib/poplib.py
index 0f588c1..7b13b46 100644
--- a/Lib/poplib.py
+++ b/Lib/poplib.py
@@ -196,14 +196,14 @@ class POP3:
return (numMessages, sizeMessages)
- def list(self, msg=None):
+ def list(self, which=None):
"""Request listing, return result.
- Result without a msg argument is in form
+ Result without a message number argument is in form
['response', ['mesg_num octets', ...]].
- Result when a msg argument is given is a single response:
- the "scan listing" for that message.
+ Result when a message number argument is given is a
+ single response: the "scan listing" for that message.
"""
if which:
return self._shortcmd('LIST %s' % which)