Change the list() function to match the documentation in the comment
(it should return a list of tuples, not a list of lists).
This commit is contained in:
parent
56d1e3a517
commit
c69955343c
@ -180,7 +180,7 @@ class NNTP:
|
|||||||
resp, list = self.longcmd('LIST')
|
resp, list = self.longcmd('LIST')
|
||||||
for i in range(len(list)):
|
for i in range(len(list)):
|
||||||
# Parse lines into "group last first flag"
|
# Parse lines into "group last first flag"
|
||||||
list[i] = string.split(list[i])
|
list[i] = tuple(string.split(list[i]))
|
||||||
return resp, list
|
return resp, list
|
||||||
|
|
||||||
# Process a GROUP command. Argument:
|
# Process a GROUP command. Argument:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user