Commit add80913 authored by Stefan Behnel's avatar Stefan Behnel

remove redundant qualifier from method name

parent 7c89ca3e
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment