Merge "Python3: Fix using dictionary keys() as list"

This commit is contained in:
Jenkins 2016-01-22 12:45:33 +00:00 committed by Gerrit Code Review
commit 47499d291c

View File

@ -414,7 +414,7 @@ class DbListCommand(BaseCommand):
def run_idl(self, txn):
table_schema = self.api._tables[self.table]
columns = self.columns or table_schema.columns.keys() + ['_uuid']
columns = self.columns or list(table_schema.columns.keys()) + ['_uuid']
if self.records:
row_uuids = []
for record in self.records:
@ -452,7 +452,7 @@ class DbFindCommand(BaseCommand):
self.table = self.api._tables[table]
self.conditions = conditions
self.columns = (kwargs.get('columns') or
self.table.columns.keys() + ['_uuid'])
list(self.table.columns.keys()) + ['_uuid'])
def run_idl(self, txn):
self.result = [