From: Benjamin Peterson Date: Sun, 11 May 2014 23:17:02 +0000 (-0700) Subject: use logical rather than bit and X-Git-Tag: v3.5.0a1~1682^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23a192d9633ace0fe83c9ac392e1df06d8c35da6;p=python use logical rather than bit and --- diff --git a/Modules/_operator.c b/Modules/_operator.c index e8bef04f84..adeb99e90a 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'",