From 22894f9a4840ea03d37bcfd6ea218aad390f09d2 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 22 Apr 2010 15:09:04 +0200 Subject: [PATCH] cleanup --- Cython/Compiler/ExprNodes.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index a4d336d9..c8c5d96c 100755 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -5813,9 +5813,8 @@ class PrimaryCmpNode(ExprNode, CmpNode): if self.operand2.type is not bytes_type: self.operand2 = self.operand2.coerce_to(bytes_type, env) env.use_utility_code(char_in_bytes_utility_code) - if not isinstance(self.operand2, (UnicodeNode, BytesNode)): - self.operand2 = self.operand2.as_none_safe_node( - "argument of type 'NoneType' is not iterable") + self.operand2 = self.operand2.as_none_safe_node( + "argument of type 'NoneType' is not iterable") else: common_type = py_object_type self.is_pycmp = True -- 2.26.2