Kaydet (Commit) c6995534 authored tarafından Guido van Rossum's avatar Guido van Rossum

Change the list() function to match the documentation in the comment

(it should return a list of tuples, not a list of lists).
üst 56d1e3a5
......@@ -180,7 +180,7 @@ class NNTP:
resp, list = self.longcmd('LIST')
for i in range(len(list)):
# Parse lines into "group last first flag"
list[i] = string.split(list[i])
list[i] = tuple(string.split(list[i]))
return resp, list
# Process a GROUP command. Argument:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment