diff options
author | R David Murray <rdmurray@bitdance.com> | 2012-06-02 17:56:49 -0400 |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2012-06-02 17:56:49 -0400 |
commit | 07ea53cb218812404cdbde820647ce6e4b2d0f8e (patch) | |
tree | 153fbb31a5056379715475ed55a5c91a0fcbd8a9 /Lib/nntplib.py | |
parent | e11eb0f21b8107d7cf61efd37ff3555258577d51 (diff) | |
download | cpython-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.py | 2 |
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 |