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:
parent
b91c813966
commit
febfb239fb
5 changed files with 160 additions and 10 deletions
pokedex/db
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue