[Python-checkins] cpython (2.7): Use bitwise instead of logical or for flags.

stefan.krah python-checkins at python.org
Thu Sep 15 22:57:05 CEST 2011


http://hg.python.org/cpython/rev/4b4b61dd24e1
changeset:   72389:4b4b61dd24e1
branch:      2.7
parent:      72387:c9bb16b7d148
user:        Stefan Krah <skrah at bytereef.org>
date:        Thu Sep 15 22:56:00 2011 +0200
summary:
  Use bitwise instead of logical or for flags.

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


diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c
--- a/Modules/_bsddb.c
+++ b/Modules/_bsddb.c
@@ -8795,7 +8795,7 @@
     {"txn_recover",     (PyCFunction)DBEnv_txn_recover,     METH_NOARGS},
 #if (DBVER < 48)
     {"set_rpc_server",  (PyCFunction)DBEnv_set_rpc_server,
-        METH_VARARGS||METH_KEYWORDS},
+        METH_VARARGS|METH_KEYWORDS},
 #endif
 #if (DBVER >= 43)
     {"set_mp_max_openfd", (PyCFunction)DBEnv_set_mp_max_openfd, METH_VARARGS},

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


More information about the Python-checkins mailing list