[pypy-svn] r66339 - pypy/branch/parser-compiler/pypy/interpreter/astcompiler
benjamin at codespeak.net
benjamin at codespeak.net
Sat Jul 18 00:12:03 CEST 2009
Author: benjamin
Date: Sat Jul 18 00:12:02 2009
New Revision: 66339
Modified:
pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py
Log:
put hint on local variable
Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py (original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/symtable.py Sat Jul 18 00:12:02 2009
@@ -417,15 +417,16 @@
ast.GenericASTVisitor.visit_With(self, wih)
def visit_arguments(self, arguments):
- assert isinstance(self.scope, FunctionScope) # Annotator hint.
+ scope = self.scope
+ assert isinstance(scope, FunctionScope) # Annotator hint.
if arguments.args:
self._handle_params(arguments.args, True)
if arguments.vararg:
self.note_symbol(arguments.vararg, SYM_PARAM)
- self.scope.note_variable_arg(arguments.vararg)
+ scope.note_variable_arg(arguments.vararg)
if arguments.kwarg:
self.note_symbol(arguments.kwarg, SYM_PARAM)
- self.scope.note_keywords_arg(arguments.kwarg)
+ scope.note_keywords_arg(arguments.kwarg)
if arguments.args:
self._handle_nested_params(arguments.args)
More information about the Pypy-commit
mailing list