]> granicus.if.org Git - python/commitdiff
decode_header(): Typo when appending an unencoded chunk to the
authorBarry Warsaw <barry@python.org>
Thu, 6 Mar 2003 06:37:42 +0000 (06:37 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 6 Mar 2003 06:37:42 +0000 (06:37 +0000)
previous unencoded chunk (e.g. when they appear on separate lines).
Closes the 2nd bug in SF #640110 (the first one's already been
fixed).

Lib/email/Header.py

index abc342cc7ab2293a63a79ebd9180d0a8b226a73d..a6a1b0705b506611d9ddea4b532e4e531f54425b 100644 (file)
@@ -92,7 +92,7 @@ def decode_header(header):
             if unenc:
                 # Should we continue a long line?
                 if decoded and decoded[-1][1] is None:
-                    decoded[-1] = (decoded[-1][0] + dec, None)
+                    decoded[-1] = (decoded[-1][0] + SPACE + unenc, None)
                 else:
                     decoded.append((unenc, None))
             if parts: