[pypy-svn] r66469 - pypy/branch/parser-compiler/pypy/interpreter/astcompiler

benjamin at codespeak.net benjamin at codespeak.net
Tue Jul 21 04:45:00 CEST 2009


Author: benjamin
Date: Tue Jul 21 04:44:59 2009
New Revision: 66469

Modified:
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
Log:
pass filename argument correctly

Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py	(original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py	Tue Jul 21 04:44:59 2009
@@ -146,7 +146,7 @@
 
     def error(self, msg, node):
         raise SyntaxError(msg, node.lineno, node.col_offset,
-                          self.compile_info.filename)
+                          filename=self.compile_info.filename)
 
     def name_op(self, identifier, ctx):
         scope = self.scope.lookup(identifier)



More information about the Pypy-commit mailing list