diff options
author | Brett Cannon <bcannon@gmail.com> | 2007-02-22 06:40:59 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2007-02-22 06:40:59 (GMT) |
commit | 0072e43d295f25b709ced3b9f7a395fbd35d08e0 (patch) | |
tree | 4e9b05d6663f2312cb92fdc1da55cb44f357a877 /Lib/bsddb/dbtables.py | |
parent | 5b8d24a7f74ce799efc4d77cf58d8e496635ef0d (diff) | |
download | cpython-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.py | 4 |
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 |