summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb/dbtables.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-02-22 06:40:59 (GMT)
committerBrett Cannon <bcannon@gmail.com>2007-02-22 06:40:59 (GMT)
commit0072e43d295f25b709ced3b9f7a395fbd35d08e0 (patch)
tree4e9b05d6663f2312cb92fdc1da55cb44f357a877 /Lib/bsddb/dbtables.py
parent5b8d24a7f74ce799efc4d77cf58d8e496635ef0d (diff)
downloadcpython-0072e43d295f25b709ced3b9f7a395fbd35d08e0.zip
cpython-0072e43d295f25b709ced3b9f7a395fbd35d08e0.tar.gz
cpython-0072e43d295f25b709ced3b9f7a395fbd35d08e0.tar.bz2
Fix test_bsddb3 (along with something bsddb) to work with dict views.
Diffstat (limited to 'Lib/bsddb/dbtables.py')
-rw-r--r--Lib/bsddb/dbtables.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/bsddb/dbtables.py b/Lib/bsddb/dbtables.py
index 5359de8..0e426d8 100644
--- a/Lib/bsddb/dbtables.py
+++ b/Lib/bsddb/dbtables.py
@@ -546,7 +546,7 @@ class bsdTableDB :
self.__load_column_info(table)
if columns is None:
columns = self.tablecolumns[table]
- for column in (columns + conditions.keys()):
+ for column in (columns + list(conditions.keys())):
if not self.__tablecolumns[table].count(column):
raise TableDBError, "unknown column: %r" % (column,)
@@ -580,7 +580,7 @@ class bsdTableDB :
# leave all unknown condition callables alone as equals
return 0
- conditionlist = conditions.items()
+ conditionlist = list(conditions.items())
conditionlist.sort(cmp_conditions)
# Apply conditions to column data to find what we want