summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/dbshelve.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-02-02 15:57:45 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-02-02 15:57:45 (GMT)
commit8d3f130d41d0c3f437f37a18c624955ce8bf65d3 (patch)
tree84d89632ffbc9d3195d4cb43f5d99e782530e6db /Lib/bsddb/dbshelve.py
parent0ac4d4c82df9c2d629dee9cd388e84b7f08d25fe (diff)
downloadcpython-8d3f130d41d0c3f437f37a18c624955ce8bf65d3.zip
cpython-8d3f130d41d0c3f437f37a18c624955ce8bf65d3.tar.gz
cpython-8d3f130d41d0c3f437f37a18c624955ce8bf65d3.tar.bz2
Fix idioms and a couple of py3k warnings. Patch by Florent Xicluna.
Diffstat (limited to 'Lib/bsddb/dbshelve.py')
-rw-r--r--Lib/bsddb/dbshelve.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/bsddb/dbshelve.py b/Lib/bsddb/dbshelve.py
index fb0b762..1706ca8 100644
--- a/Lib/bsddb/dbshelve.py
+++ b/Lib/bsddb/dbshelve.py
@@ -157,7 +157,7 @@ class DBShelf(MutableMapping):
def keys(self, txn=None):
- if txn != None:
+ if txn is not None:
return self.db.keys(txn)
else:
return self.db.keys()
@@ -185,7 +185,7 @@ class DBShelf(MutableMapping):
def items(self, txn=None):
- if txn != None:
+ if txn is not None:
items = self.db.items(txn)
else:
items = self.db.items()
@@ -196,7 +196,7 @@ class DBShelf(MutableMapping):
return newitems
def values(self, txn=None):
- if txn != None:
+ if txn is not None:
values = self.db.values(txn)
else:
values = self.db.values()