base64 anomaly

eichin at metacarta.com eichin at metacarta.com
Fri Feb 28 11:00:03 EST 2003


excellent, thanks...

(for context only:)
Bernhard Herzog <bh at intevation.de> writes:

> 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