Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8d5bef7

Browse files
committed
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'.
1 parent 4117e54 commit 8d5bef7

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/poplib.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,14 @@ def stat(self):
196196
return (numMessages, sizeMessages)
197197

198198

199-
def list(self, msg=None):
199+
def list(self, which=None):
200200
"""Request listing, return result.
201201
202-
Result without a msg argument is in form
202+
Result without a message number argument is in form
203203
['response', ['mesg_num octets', ...]].
204204
205-
Result when a msg argument is given is a single response:
206-
the "scan listing" for that message.
205+
Result when a message number argument is given is a
206+
single response: the "scan listing" for that message.
207207
"""
208208
if which:
209209
return self._shortcmd('LIST %s' % which)

0 commit comments

Comments
 (0)