From: Stefan Behnel Date: Wed, 21 Aug 2013 19:13:17 +0000 (+0200) Subject: remove redundant qualifier from method name X-Git-Tag: 0.20b1~367 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=add8091340e3e7f053a484fb3a2fcaffa5e20be7;p=platform%2Fupstream%2Fpython-cython.git remove redundant qualifier from method name --- diff --git a/Cython/Compiler/Optimize.py b/Cython/Compiler/Optimize.py index 18575ee..e4f6c5b 100644 --- a/Cython/Compiler/Optimize.py +++ b/Cython/Compiler/Optimize.py @@ -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)