From: Stefan Behnel Date: Thu, 22 Apr 2010 13:09:04 +0000 (+0200) Subject: cleanup X-Git-Tag: 0.13.beta0~157 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=22894f9a4840ea03d37bcfd6ea218aad390f09d2;p=cython.git cleanup --- 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