summaryrefslogtreecommitdiff
path: root/Lib/nntplib.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2012-06-02 17:56:49 -0400
committerR David Murray <rdmurray@bitdance.com>2012-06-02 17:56:49 -0400
commit07ea53cb218812404cdbde820647ce6e4b2d0f8e (patch)
tree153fbb31a5056379715475ed55a5c91a0fcbd8a9 /Lib/nntplib.py
parente11eb0f21b8107d7cf61efd37ff3555258577d51 (diff)
downloadcpython-git-07ea53cb218812404cdbde820647ce6e4b2d0f8e.tar.gz
#1079: Fix parsing of encoded words.
This is a behavior change: before this leading and trailing spaces were stripped from ASCII parts, now they are preserved. Without this fix we didn't parse the examples in the RFC correctly, so I think breaking backward compatibility here is justified. Patch by Ralf Schlatterbeck.
Diffstat (limited to 'Lib/nntplib.py')
-rw-r--r--Lib/nntplib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/nntplib.py b/Lib/nntplib.py
index eb16206bbc..2de6ebd1b5 100644
--- a/Lib/nntplib.py
+++ b/Lib/nntplib.py
@@ -166,7 +166,7 @@ def decode_header(header_str):
parts.append(v.decode(enc or 'ascii'))
else:
parts.append(v)
- return ' '.join(parts)
+ return ''.join(parts)
def _parse_overview_fmt(lines):
"""Parse a list of string representing the response to LIST OVERVIEW.FMT