strange import error with Python-2.4.1

Robin Becker robin at reportlab.com
Tue Oct 11 10:03:14 EDT 2005


Fredrik Lundh wrote:
> Steve Holden wrote:
> 
> 
>>Can I ask if you are specifying a source encoding in your file with a
>>pragma (?) like
>>
>># -*- coding: iso-8859-15 -*-
>>
>>I've noticed what appear to be spurious syntax errors from time to time
>>on such files, and have been attempting to debug the problem for some
>>time without any apparent success.
> 
> 
> http://www.python.org/sf/1175396
> 
> </F> 

thanks that looks like it, the __init__.py had


# -*- coding: cp1252 -*-

at the start.
-- 
Robin Becker




More information about the Python-list mailing list