Author: Amaury Forgeot d'Arc <amaur...@gmail.com>
Branch: py3.5
Changeset: r87664:57ef7c44238c
Date: 2016-10-01 22:45 +0200
http://bitbucket.org/pypy/pypy/changeset/57ef7c44238c/

Log:    Fix own test pypy/interpreter/test/test_syntax.py, this clears
        test_grammar.

diff --git a/pypy/interpreter/astcompiler/codegen.py 
b/pypy/interpreter/astcompiler/codegen.py
--- a/pypy/interpreter/astcompiler/codegen.py
+++ b/pypy/interpreter/astcompiler/codegen.py
@@ -352,7 +352,13 @@
         space = self.space
         names = []
         self._visit_arg_annotations(args.args, names)
+        if args.vararg:
+            self._visit_arg_annotation(args.vararg.arg, args.vararg.annotation,
+                                       names)
         self._visit_arg_annotations(args.kwonlyargs, names)
+        if args.kwarg:
+            self._visit_arg_annotation(args.kwarg.arg, args.kwarg.annotation,
+                                       names)
         self._visit_arg_annotation("return", returns, names)
         l = len(names)
         if l:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to