Commit cd76e995 authored by Stefan Behnel's avatar Stefan Behnel

replace frozenset([]) by frozenset()

parent d609632a
...@@ -1603,7 +1603,9 @@ class EarlyReplaceBuiltinCalls(Visitor.EnvTransform): ...@@ -1603,7 +1603,9 @@ class EarlyReplaceBuiltinCalls(Visitor.EnvTransform):
""" """
if len(pos_args) != 1: if len(pos_args) != 1:
return node return node
if isinstance(pos_args[0], ExprNodes.ListNode): if pos_args[0].is_sequence_constructor and not pos_args[0].args:
del pos_args[0]
elif isinstance(pos_args[0], ExprNodes.ListNode):
pos_args[0] = pos_args[0].as_tuple() pos_args[0] = pos_args[0].as_tuple()
return node return node
......
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