X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=python%2Fcumulus%2Frebuild_database.py;h=3f391d884f9c4024189fa49249bfecb36f76991a;hp=a4af6403fe3581bd96978608e8a9a5b35e15b6ad;hb=567bd6a883eaa54d10ca61d0b6083da09bf48085;hpb=a5f66616b1ec0c38328ad5131bf1c889ccc43659 diff --git a/python/cumulus/rebuild_database.py b/python/cumulus/rebuild_database.py index a4af640..3f391d8 100755 --- a/python/cumulus/rebuild_database.py +++ b/python/cumulus/rebuild_database.py @@ -26,6 +26,8 @@ the local database. This can be used to recover from a local database loss, given data from a previous backup. """ +from __future__ import division, print_function, unicode_literals + import base64 import hashlib import itertools @@ -275,7 +277,7 @@ class DatabaseRebuilder(object): def insert_segment_info(self, segment, info): id = self.segment_to_id(segment) - for k, v in list(info.items()): + for k, v in info.items(): self.cursor.execute("update segments set " + k + " = ? " "where segmentid = ?", (v, id))