Fix a python2.6 compatibility issue. Removing a dict comprehension.

This commit sponsored by Christopher Beppler.  Thanks!
This commit is contained in:
Christopher Allan Webber 2014-08-18 10:40:08 -05:00
parent cbc5f9500c
commit a7800e6da8

View File

@ -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')