]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Change the list() function to match the documentation in the comment
authorGuido van Rossum <guido@python.org>
Fri, 14 Mar 1997 04:18:20 +0000 (04:18 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 14 Mar 1997 04:18:20 +0000 (04:18 +0000)
(it should return a list of tuples, not a list of lists).

Lib/nntplib.py

index b6b395703d79a8885143f696d9155d9e800e2fe5..7fe4971417e9162d5bb769e2713d9a17790fd554 100644 (file)
@@ -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: