summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-12-21 18:51:23 (GMT)
committerGuido van Rossum <guido@python.org>1998-12-21 18:51:23 (GMT)
commit98c17b3aeee627b2191f3d6954ae44b741b368f4 (patch)
tree450851c9e103727c96613f19a722574565f56ac2 /Lib
parent95864d35c68e9a3605fac8d1c459902150c18443 (diff)
downloadcpython-98c17b3aeee627b2191f3d6954ae44b741b368f4.zip
cpython-98c17b3aeee627b2191f3d6954ae44b741b368f4.tar.gz
cpython-98c17b3aeee627b2191f3d6954ae44b741b368f4.tar.bz2
Marc-Andre Lemburg notes about statparse():
""" The message ID is returned lowercased and there is no way to access the original ID the server sent. Now at least some news servers are very picky about the case of the ID and return errors when fetching articles with mixed case given a lowercased version of the ID. The solution is simple: remove the string.lower() call. """ (I might add that the lowercasing was probably introduced as a result of sloppy copy-and-paste coding; there's a string.lower in a similar piece of code a bit higher in the source, that makes more sense -- it's lowercasing the group name.)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/nntplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/nntplib.py b/Lib/nntplib.py
index 865041f..21649a0 100644
--- a/Lib/nntplib.py
+++ b/Lib/nntplib.py
@@ -239,7 +239,7 @@ class NNTP:
if n > 1:
nr = words[1]
if n > 2:
- id = string.lower(words[2])
+ id = words[2]
return resp, nr, id
# Internal: process a STAT, NEXT or LAST command