Fix a python2.6 compatibility issue. Removing a dict comprehension.
This commit sponsored by Christopher Beppler. Thanks!
This commit is contained in:
parent
cbc5f9500c
commit
a7800e6da8
@ -837,7 +837,8 @@ def revert_username_index(db):
|
||||
"""
|
||||
metadata = MetaData(bind=db.bind)
|
||||
user_table = inspect_table(metadata, "core__users")
|
||||
indexes = {index.name: index for index in user_table.indexes}
|
||||
indexes = dict(
|
||||
[(index.name, index) for index in user_table.indexes])
|
||||
|
||||
# index from unnecessary migration
|
||||
users_uploader_index = indexes.get(u'ix_core__users_uploader')
|
||||
|
Loading…
x
Reference in New Issue
Block a user