[pypy-svn] r17747 - pypy/dist/pypy/interpreter/astcompiler

ac at codespeak.net ac at codespeak.net
Wed Sep 21 23:02:04 CEST 2005


Author: ac
Date: Wed Sep 21 23:02:04 2005
New Revision: 17747

Modified:
   pypy/dist/pypy/interpreter/astcompiler/pycodegen.py
Log:
Fix typo.

Modified: pypy/dist/pypy/interpreter/astcompiler/pycodegen.py
==============================================================================
--- pypy/dist/pypy/interpreter/astcompiler/pycodegen.py	(original)
+++ pypy/dist/pypy/interpreter/astcompiler/pycodegen.py	Wed Sep 21 23:02:04 2005
@@ -1238,7 +1238,7 @@
             elif isinstance(arg, ast.AssTuple):
                 for name in arg.getArgNames():
                     if name in argnames:
-                        raise SyntaxError("duplicate argument '%s' in function definition" % arg.name)
+                        raise SyntaxError("duplicate argument '%s' in function definition" % name)
                     argnames[name] = 1
         if 'None' in argnames:
             raise SyntaxError('assignment to None is not allowed')



More information about the Pypy-commit mailing list