Commit 5b2a9e15 authored by Stefan Behnel's avatar Stefan Behnel

debritification

parent 45627fdd
...@@ -416,8 +416,8 @@ class FlattenInListTransform(Visitor.VisitorTransform, SkipDeclarations): ...@@ -416,8 +416,8 @@ class FlattenInListTransform(Visitor.VisitorTransform, SkipDeclarations):
visit_Node = Visitor.VisitorTransform.recurse_to_children visit_Node = Visitor.VisitorTransform.recurse_to_children
class OptimiseBuiltinCalls(Visitor.VisitorTransform): class OptimizeBuiltinCalls(Visitor.VisitorTransform):
"""Optimise some common methods calls and instantiation patterns """Optimize some common methods calls and instantiation patterns
for builtin types. for builtin types.
""" """
# only intercept on call nodes # only intercept on call nodes
...@@ -511,7 +511,7 @@ class OptimiseBuiltinCalls(Visitor.VisitorTransform): ...@@ -511,7 +511,7 @@ class OptimiseBuiltinCalls(Visitor.VisitorTransform):
if not isinstance(kwargs, ExprNodes.DictNode): if not isinstance(kwargs, ExprNodes.DictNode):
return node return node
if node.starstar_arg: if node.starstar_arg:
# we could optimise this by updating the kw dict instead # we could optimize this by updating the kw dict instead
return node return node
return kwargs return kwargs
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment