Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e0aa05 commit 23a192dCopy full SHA for 23a192d
1 file changed
Modules/_operator.c
@@ -277,7 +277,7 @@ compare_digest(PyObject *self, PyObject *args)
277
Py_buffer view_a;
278
Py_buffer view_b;
279
280
- if ((PyObject_CheckBuffer(a) == 0) & (PyObject_CheckBuffer(b) == 0)) {
+ if (PyObject_CheckBuffer(a) == 0 && PyObject_CheckBuffer(b) == 0) {
281
PyErr_Format(PyExc_TypeError,
282
"unsupported operand types(s) or combination of types: "
283
"'%.100s' and '%.100s'",
0 commit comments