cleanup
authorStefan Behnel <scoder@users.berlios.de>
Thu, 22 Apr 2010 13:09:04 +0000 (15:09 +0200)
committerStefan Behnel <scoder@users.berlios.de>
Thu, 22 Apr 2010 13:09:04 +0000 (15:09 +0200)
Cython/Compiler/ExprNodes.py

index a4d336d9ae7b522a94ad26cecc1aef765cb8efa5..c8c5d96cb8637f7214b55a811c68b8915f109c56 100755 (executable)
@@ -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