projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c89ca3
)
remove redundant qualifier from method name
author
Stefan Behnel
<stefan_ml@behnel.de>
Wed, 21 Aug 2013 19:13:17 +0000
(21:13 +0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Wed, 21 Aug 2013 19:13:17 +0000
(21:13 +0200)
Cython/Compiler/Optimize.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Optimize.py
b/Cython/Compiler/Optimize.py
index
18575ee
..
e4f6c5b
100644
(file)
--- 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_
Unary
NotNode(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_
Unary
NotNode(self, node):
+ def _handle_NotNode(self, node):
operand = node.operand
if isinstance(operand, ExprNodes.PrimaryCmpNode):
operator = self._negate_operator(operand.operator)