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

2007-06-07 Thread Guido van Rossum
On 6/7/07, Neal Norwitz <[EMAIL PROTECTED]> wrote: > On 6/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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 isinsta

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

2007-06-07 Thread Neal Norwitz
On 6/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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

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

2007-06-07 Thread martin
> 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

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

2007-06-07 Thread Neal Norwitz
When I originally tried to check in rev 55797, I got this exception: Traceback (most recent call last): File "/data/repos/projects/hooks/checkwhitespace.py", line 50, in ? run_app(main) File "/usr/lib/python2.3/site-packages/svn/core.py", line 33, in run_app return apply(func, (pool,)