Commit d0cf23e7 authored by Stefan Behnel's avatar Stefan Behnel

simplified some nonlocally_immutable() tests

parent 8a3e66c0
......@@ -9296,7 +9296,7 @@ class PyTypeTestNode(CoercionNode):
return self.arg.is_ephemeral()
def nonlocally_immutable(self):
return super(PyTypeTestNode, self).nonlocally_immutable() or self.arg.nonlocally_immutable()
return self.arg.nonlocally_immutable()
def calculate_constant_result(self):
# FIXME
......@@ -9355,7 +9355,7 @@ class NoneCheckNode(CoercionNode):
return self.arg.result_in_temp()
def nonlocally_immutable(self):
return super(NoneCheckNode, self).nonlocally_immutable() or self.arg.nonlocally_immutable()
return self.arg.nonlocally_immutable()
def calculate_result_code(self):
return self.arg.result()
......
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