Gre7g, Jim, base64 can only be decoded 'strict'. In Unicode.py, on
line 113 you try to decode with the 'Errors' parameter and if it fails
with a TypeError you decode with the default. The problem with base64
is that it fails with an AssertionError. Could you just catch any
exception and retry with the default? I.e.,
try: Uni = Decoder(Str, errors = Errors)[0] except: Uni = Decoder(Str)[0]
Done in CVS. Thanks for this!
That would fix the problem Michael is having and would, I think, better accomplish what you're trying to solve by catching the exception in the first place.
I think you're right.
-- Jim Ramsay "Me fail English? That's unpossible!"
_________________________________________________ tmda-workers mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-workers
