Commit 57dddae0 authored by Stefan Behnel's avatar Stefan Behnel

avoid redundant None check on literals

parent e8521032
...@@ -1720,7 +1720,7 @@ class OptimizeBuiltinCalls(Visitor.EnvTransform): ...@@ -1720,7 +1720,7 @@ class OptimizeBuiltinCalls(Visitor.EnvTransform):
attr_name, is_unbound_method, args=(), attr_name, is_unbound_method, args=(),
utility_code=None): utility_code=None):
args = list(args) args = list(args)
if args: if args and not args[0].is_literal:
self_arg = args[0] self_arg = args[0]
if is_unbound_method: if is_unbound_method:
self_arg = ExprNodes.NoneCheckNode( self_arg = ExprNodes.NoneCheckNode(
......
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