Commit 6bec10e5 authored by Stefan Behnel's avatar Stefan Behnel

Fix some comments.

parent b1a30915
...@@ -2777,11 +2777,9 @@ class OptimizeBuiltinCalls(Visitor.NodeRefCleanupMixin, ...@@ -2777,11 +2777,9 @@ class OptimizeBuiltinCalls(Visitor.NodeRefCleanupMixin,
return node return node
type_arg = args[0] type_arg = args[0]
if not obj.is_name or not type_arg.is_name: if not obj.is_name or not type_arg.is_name:
# play safe return node # not a simple case
return node
if obj.type != Builtin.type_type or type_arg.type != Builtin.type_type: if obj.type != Builtin.type_type or type_arg.type != Builtin.type_type:
# not a known type, play safe return node # not a known type
return node
if not type_arg.type_entry or not obj.type_entry: if not type_arg.type_entry or not obj.type_entry:
if obj.name != type_arg.name: if obj.name != type_arg.name:
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