This commit is contained in:
Matthias Bussonnier 2015-06-24 17:51:59 +02:00 committed by Thomas Kluyver
parent 3cf82c6594
commit 3bc6c0f936
1 changed files with 2 additions and 2 deletions

View File

@ -243,13 +243,13 @@ class DebugInterpreter(ast.NodeVisitor):
keyword_source = "%s=%%s" % (keyword.arg)
arguments.append(keyword_source % (arg_name,))
arg_explanations.append(keyword_source % (arg_explanation,))
if call.starargs:
if sys.version_info <= (3,4) and call.starargs:
arg_explanation, arg_result = self.visit(call.starargs)
arg_name = "__exprinfo_star"
ns[arg_name] = arg_result
arguments.append("*%s" % (arg_name,))
arg_explanations.append("*%s" % (arg_explanation,))
if call.kwargs:
if sys.version_info <= (3,4) and call.kwargs:
arg_explanation, arg_result = self.visit(call.kwargs)
arg_name = "__exprinfo_kwds"
ns[arg_name] = arg_result