1
0
Fork 0
mirror of https://github.com/veekun/pokedex.git synced 2024-08-20 18:16:34 +00:00

Python 2.5 compatibility

This commit is contained in:
a_magical_me 2010-04-25 00:14:29 -07:00
parent b91c813966
commit febfb239fb
5 changed files with 160 additions and 10 deletions
pokedex/db

View file

@ -179,7 +179,7 @@ def load(session, tables=[], directory=None, drop_tables=False, verbose=False):
session.commit()
new_rows[:] = []
progress = "{0}%".format(100 * csvfile.tell() // csvsize)
progress = "%d%%" % (100 * csvfile.tell() // csvsize)
print_status(progress)
for csvs in reader: