base64 anomaly
Bernhard Herzog
bh at intevation.de
Fri Feb 28 06:40:00 EST 2003
eichin at metacarta.com writes:
> >>> base64.decodestring(base64.encodestring(""))
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/lib/python2.2/base64.py", line 44, in decodestring
> return binascii.a2b_base64(s)
> binascii.Error: Cannot decode empty input
This seems to be fixed in current CVS Python:
Python 2.3a2+ (#1, Feb 28 2003, 11:27:37)
[GCC 2.95.4 20011002 (Debian prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import base64
>>> base64.decodestring(base64.encodestring(""))
''
>>>
Berhard
--
Intevation GmbH http://intevation.de/
Sketch http://sketch.sourceforge.net/
MapIt! http://www.mapit.de/
More information about the Python-list
mailing list