summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-05-11 23:17:02 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-05-11 23:17:02 (GMT)
commit23a192d9633ace0fe83c9ac392e1df06d8c35da6 (patch)
treefd6f30a7ac25a6ecb38b5ec30f680f5b2e75e0f7 /Modules
parent8e0aa051e62d5f6160b6bf4870c990a0a4c78703 (diff)
downloadcpython-23a192d9633ace0fe83c9ac392e1df06d8c35da6.zip
cpython-23a192d9633ace0fe83c9ac392e1df06d8c35da6.tar.gz
cpython-23a192d9633ace0fe83c9ac392e1df06d8c35da6.tar.bz2
use logical rather than bit and
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_operator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_operator.c b/Modules/_operator.c
index e8bef04..adeb99e 100644
--- a/Modules/_operator.c
+++ b/Modules/_operator.c
@@ -277,7 +277,7 @@ compare_digest(PyObject *self, PyObject *args)
Py_buffer view_a;
Py_buffer view_b;
- if ((PyObject_CheckBuffer(a) == 0) & (PyObject_CheckBuffer(b) == 0)) {
+ if (PyObject_CheckBuffer(a) == 0 && PyObject_CheckBuffer(b) == 0) {
PyErr_Format(PyExc_TypeError,
"unsupported operand types(s) or combination of types: "
"'%.100s' and '%.100s'",