On Wed, 15 Aug 2012 10:48:50 +0200, Jakub Wilk wrote: > * gregor herrmann <gre...@debian.org>, 2012-08-14, 19:11: > >+- if(sys.version_info.major < 3): > >++ if(sys.version_info[0] < 3): > >+ # hack to make this work with Python 2 > >+- f_loc = f.decode('ascii', errors='ignore') > >++ f_loc = f.decode('ascii', 'ignore') > >+ else: > >+ f_loc = f.encode(enc, errors='replace').decode(enc, > >errors='replace') > To be super-correct, the other "f_loc = ..." line should be fixed in > the same way: Python 3.1 doesn't support keyword arguments in > str.encode() either.
Oh, I guess I should have read the python stdlib docs closer. Thanks for the review and the improvement! (And thanks Martin for the quick upload). Cheers, gregor -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `- NP: Elton John: Circle Of Love
signature.asc
Description: Digital signature