Commit bf4e0fc6 authored by Emmanuel Quevillon's avatar Emmanuel Quevillon
Browse files

Changed mysql connector to work with python3. Updated code to python3 compatibility

parent 68651dd9
......@@ -196,7 +196,7 @@ def main():
cur.execute("SELECT name,idbank from bank")
for row in cur.fetchall():
oldbanks[row[0]] = { "dbid": row[1], "name": row[0] }
for bank,value in oldbanks.iteritems():
for bank,value in iter(oldbanks.items()):
migrate_bank(cur, value)
except mysql.connector.Error as error:
if error.errno == errorcode.ER_ACCESS_DENIED_ERROR:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment