projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
087783f
)
drop dead code (s1!=s2 => s1==s2==None is False)
author
Stefan Behnel
<scoder@users.berlios.de>
Fri, 29 Apr 2011 16:06:23 +0000
(18:06 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Fri, 29 Apr 2011 16:06:23 +0000
(18:06 +0200)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index 7fc9f6ddb26e05b62afd9e8d2e6988f31f30b49e..7756b24036981a2dde81929918674701f19be164 100755
(executable)
--- a/
Cython/Compiler/ExprNodes.py
+++ b/
Cython/Compiler/ExprNodes.py
@@
-6868,8
+6868,6
@@
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int
return -1;
return (equals == Py_EQ) ? (result == 0) : (result != 0);
}
- } else if ((s1 == Py_None) & (s2 == Py_None)) {
- return (equals == Py_EQ);
} else if ((s1 == Py_None) & PyUnicode_CheckExact(s2)) {
return (equals == Py_NE);
} else if ((s2 == Py_None) & PyUnicode_CheckExact(s1)) {