[Python-checkins] cpython (3.4): use logical rather than bit and

benjamin.peterson python-checkins at python.org
Mon May 12 01:18:32 CEST 2014


http://hg.python.org/cpython/rev/6a26c1bce331
changeset:   90649:6a26c1bce331
branch:      3.4
parent:      90642:585dfa357fc4
user:        Benjamin Peterson <benjamin at python.org>
date:        Sun May 11 16:17:02 2014 -0700
summary:
  use logical rather than bit and

files:
  Modules/_operator.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/_operator.c b/Modules/_operator.c
--- a/Modules/_operator.c
+++ b/Modules/_operator.c
@@ -277,7 +277,7 @@
         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'",

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list