Author: Raffael Tfirst <raffael.tfi...@gmail.com> Branch: py3.5 Changeset: r85010:facd0617efcb Date: 2016-06-07 21:34 +0200 http://bitbucket.org/pypy/pypy/changeset/facd0617efcb/
Log: Remove starargs and kwargs in handle_classdef diff --git a/pypy/interpreter/astcompiler/astbuilder.py b/pypy/interpreter/astcompiler/astbuilder.py --- a/pypy/interpreter/astcompiler/astbuilder.py +++ b/pypy/interpreter/astcompiler/astbuilder.py @@ -452,12 +452,12 @@ if classdef_node.num_children() == 4: # class NAME ':' suite body = self.handle_suite(classdef_node.get_child(3)) - return ast.ClassDef(name, None, None, None, None, body, decorators, + return ast.ClassDef(name, None, None, body, decorators, classdef_node.get_lineno(), classdef_node.get_column()) if classdef_node.get_child(3).type == tokens.RPAR: # class NAME '(' ')' ':' suite body = self.handle_suite(classdef_node.get_child(5)) - return ast.ClassDef(name, None, None, None, None, body, decorators, + return ast.ClassDef(name, None, None, body, decorators, classdef_node.get_lineno(), classdef_node.get_column()) # class NAME '(' arglist ')' ':' suite @@ -467,7 +467,7 @@ call = self.handle_call(classdef_node.get_child(3), call_name) body = self.handle_suite(classdef_node.get_child(6)) return ast.ClassDef( - name, call.args, call.keywords, call.starargs, call.kwargs, + name, call.args, call.keywords, body, decorators, classdef_node.get_lineno(), classdef_node.get_column()) def handle_class_bases(self, bases_node): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit