From: Guido van Rossum Date: Fri, 14 Mar 1997 04:18:20 +0000 (+0000) Subject: Change the list() function to match the documentation in the comment X-Git-Tag: v1.5a1~285 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c69955343c8cad265aeafe93b6afc4f1589fd084;p=thirdparty%2FPython%2Fcpython.git Change the list() function to match the documentation in the comment (it should return a list of tuples, not a list of lists). --- diff --git a/Lib/nntplib.py b/Lib/nntplib.py index b6b395703d79..7fe4971417e9 100644 --- a/Lib/nntplib.py +++ b/Lib/nntplib.py @@ -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: