From: Benjamin Peterson Date: Sun, 11 May 2014 23:17:02 +0000 (-0700) Subject: use logical rather than bit and X-Git-Tag: v2.7.7rc1~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c166055f9ce245b755175f41585af1e9a95f24c;p=python use logical rather than bit and --- diff --git a/Modules/operator.c b/Modules/operator.c index 7cbb45e7db..375592c1eb 100644 --- a/Modules/operator.c +++ b/Modules/operator.c @@ -319,7 +319,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'",