summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-03-14 04:18:20 (GMT)
committerGuido van Rossum <guido@python.org>1997-03-14 04:18:20 (GMT)
commitc69955343c8cad265aeafe93b6afc4f1589fd084 (patch)
treea0e469514c0425ff74f3a5be7fa19e3bb58db4cd
parent56d1e3a517981562904113765f2eca361a1c6d19 (diff)
downloadcpython-c69955343c8cad265aeafe93b6afc4f1589fd084.zip
cpython-c69955343c8cad265aeafe93b6afc4f1589fd084.tar.gz
cpython-c69955343c8cad265aeafe93b6afc4f1589fd084.tar.bz2
Change the list() function to match the documentation in the comment
(it should return a list of tuples, not a list of lists).
-rw-r--r--Lib/nntplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/nntplib.py b/Lib/nntplib.py
index b6b3957..7fe4971 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: