spurious syntax error when updating to 2.4 ?

2005-07-21 Thread Simon Dahlbacka
Hi,

I'm doing some preparation for a hopefully upcoming transition to
python 2.4 (from 2.3.4) on winxp platform

However, I'm getting SyntaxErrors in files that worked fine in 2.3, it
tells me that e.g.

newLanguage.language =
languageElement[0].firstChild.data.encode(ascii)

this line is broken

However, if I modify my file just for the heck of it and comment that
particular line, I still might get syntax error on that particular
line, or if I insert a line before that particular line I might get
away with it?

Has anyone seen anything similar, or even better knows what causes
this?

/Simon

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: spurious syntax error when updating to 2.4 ?

2005-07-21 Thread Simon Dahlbacka
Replying to self,

it seems to be related to
https://sourceforge.net/tracker/index.php?func=detailaid=1163244group_id=5470atid=105470
(Syntax error on large file with MBCS encoding)
even though my files had # -*- coding: ascii -*-
However, if I removed this explicit ascii encoding then I did not get
any syntax error.

/Simon

-- 
http://mail.python.org/mailman/listinfo/python-list