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:
Guido van Rossum 1997-03-14 04:18:20 +00:00
parent 56d1e3a517
commit c69955343c
1 changed files with 1 additions and 1 deletions

View File

@ -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: