Commit 22894f9a authored by Stefan Behnel's avatar Stefan Behnel

cleanup

parent b5cfad6e
...@@ -5813,9 +5813,8 @@ class PrimaryCmpNode(ExprNode, CmpNode): ...@@ -5813,9 +5813,8 @@ class PrimaryCmpNode(ExprNode, CmpNode):
if self.operand2.type is not bytes_type: if self.operand2.type is not bytes_type:
self.operand2 = self.operand2.coerce_to(bytes_type, env) self.operand2 = self.operand2.coerce_to(bytes_type, env)
env.use_utility_code(char_in_bytes_utility_code) env.use_utility_code(char_in_bytes_utility_code)
if not isinstance(self.operand2, (UnicodeNode, BytesNode)): self.operand2 = self.operand2.as_none_safe_node(
self.operand2 = self.operand2.as_none_safe_node( "argument of type 'NoneType' is not iterable")
"argument of type 'NoneType' is not iterable")
else: else:
common_type = py_object_type common_type = py_object_type
self.is_pycmp = True self.is_pycmp = True
......
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