Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23a192d

Browse files
committed
use logical rather than bit and
1 parent 8e0aa05 commit 23a192d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_operator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ compare_digest(PyObject *self, PyObject *args)
277277
Py_buffer view_a;
278278
Py_buffer view_b;
279279

280-
if ((PyObject_CheckBuffer(a) == 0) & (PyObject_CheckBuffer(b) == 0)) {
280+
if (PyObject_CheckBuffer(a) == 0 && PyObject_CheckBuffer(b) == 0) {
281281
PyErr_Format(PyExc_TypeError,
282282
"unsupported operand types(s) or combination of types: "
283283
"'%.100s' and '%.100s'",

0 commit comments

Comments
 (0)