fix syntaxerror in python2.4