jihoonham / spynner

Automatically exported from code.google.com/p/spynner
GNU General Public License v3.0
0 stars 0 forks source link

syntax error in spynner.py #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
on windows, standard installation failed on byte compilation. 
here's a snippet from the output of "python setup.py install" command:

byte-compiling build\bdist.win32\egg\spynner\spynner.py to spynner.pyc
  File "build\bdist.win32\egg\spynner\spynner.py", line 184
    debug(*args, outfd=self.debugfd)
                     ^
SyntaxError: invalid syntax
byte-compiling build\bdist.win32\egg\spynner\__init__.py to __init__.pyc

i think you can't use named arguments after "*args".   i just removed the
"outfd..." and resumed normally.

Original issue reported on code.google.com by shula.am...@gmx.com on 26 Jul 2009 at 9:38

GoogleCodeExporter commented 9 years ago
What python version are you using?. I assumed (wrongly, it seems) that this
construction was allowed for newer versions of python. I've changed it to:

    def _debug(self, level, *args):
        if level <= self.verbose_level:
            kwargs = dict(outfd=self.debugfd)
            debug(*args, **kwargs)

For now on test always the trunk version of spynner. 

And thanks for all your reports!

Original comment by tokland on 26 Jul 2009 at 1:15