[Python-3000] problem with checking whitespace in svn pre-commit hook
Neal Norwitz
nnorwitz at gmail.com
Thu Jun 7 19:55:35 CEST 2007
On 6/7/07, martin at v.loewis.de <martin at v.loewis.de> wrote:
> > 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.
I ran reindent with py3k, something like: ./python
Tools/scripts/reindent.py Lib
IIRC. I don't have the command line handy. I'll fix this when I get
home tonight.
Has anyone tried the 3k reindent? Or did I just screw that up?
n
More information about the Python-3000
mailing list