[Python-3000] problem with checking whitespace in svn pre-commit hook

martin at v.loewis.de martin at v.loewis.de
Thu Jun 7 19:37:44 CEST 2007


> tokenize.TokenError: ('EOF in multi-line statement', (315, 0))

I analyzed that a bit further, and found that
Lib/distutils/unixccompiler.py:214 reads

if not isinstance(output_dir, (str, type(None)):

This is a syntax error; a closing parenthesis is missing.
tokenize.py chokes at the EOF as the parentheses aren't balanced.

> I ran reindent prior to committing, but that had no effect (ie,  
> still go the error).

I find that hard to believe - running reindent.py on the file
fails for me with Python 2.5 as well.

Regards,
Martin




More information about the Python-3000 mailing list