This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author guettli
Recipients guettli
Date 2011-07-04.14:39:11
SpamBayes Score 1.1320513e-07
Marked as misclassified No
Message-id <1309790352.52.0.999375734103.issue12489@psf.upfronthosting.co.za>
In-reply-to
Content
This happens on Python3:
root@ubuntu1004devel64:~# python3
Python 3.1.2 (r312:79147, Sep 27 2010, 09:57:50) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from email.header import decode_header
>>> decode_header('=?iso-8859-1?B?QW5tZWxkdW5nIE5ldHphbnNjaGx1c3MgU_xkcmluZzNwLmpwZw==?=')
Traceback (most recent call last):
  File "/usr/lib/python3.1/email/header.py", line 98, in decode_header
    word = email.base64mime.decode(encoded_string)
  File "/usr/lib/python3.1/email/base64mime.py", line 112, in decode
    return a2b_base64(string.encode('raw-unicode-escape'))
binascii.Error: Incorrect padding

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.1/email/header.py", line 100, in decode_header
    raise HeaderParseError('Base64 decoding error')
email.errors.HeaderParseError: Base64 decoding error
History
Date User Action Args
2011-07-04 14:39:12guettlisetrecipients: + guettli
2011-07-04 14:39:12guettlisetmessageid: <1309790352.52.0.999375734103.issue12489@psf.upfronthosting.co.za>
2011-07-04 14:39:12guettlilinkissue12489 messages
2011-07-04 14:39:11guettlicreate