mirror of https://github.com/python/cpython.git
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 @@ def list(self):
|
|||
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:
|
||||
|
|
Loading…
Reference in New Issue