remove redundant qualifier from method name
authorStefan Behnel <stefan_ml@behnel.de>
Wed, 21 Aug 2013 19:13:17 +0000 (21:13 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Wed, 21 Aug 2013 19:13:17 +0000 (21:13 +0200)
Cython/Compiler/Optimize.py

index 18575ee..e4f6c5b 100644 (file)
@@ -3052,7 +3052,7 @@ class ConstantFolding(Visitor.VisitorTransform, SkipDeclarations):
         self._calculate_const(node)
         if node.constant_result is ExprNodes.not_a_constant:
             if node.operator == '!':
-                return self._handle_UnaryNotNode(node)
+                return self._handle_NotNode(node)
             return node
         if not node.operand.is_literal:
             return node
@@ -3076,7 +3076,7 @@ class ConstantFolding(Visitor.VisitorTransform, SkipDeclarations):
         'is_not': 'is'
     }.get
 
-    def _handle_UnaryNotNode(self, node):
+    def _handle_NotNode(self, node):
         operand = node.operand
         if isinstance(operand, ExprNodes.PrimaryCmpNode):
             operator = self._negate_operator(operand.operator)