
Removes `six` from the locals().copy() so that it won't be templated into manage.py. Currently manage.py is mis-templated and is failing. Change-Id: Ib3b7c7caac998fbaa45c3370547c9b8bf13abe41 Closes-Bug: 171
15 lines
317 B
Python
15 lines
317 B
Python
#!/usr/bin/env python
|
|
from migrate.versioning.shell import main
|
|
|
|
{{py:
|
|
import six
|
|
_vars = locals().copy()
|
|
del _vars['__template_name__']
|
|
del _vars['six']
|
|
_vars.pop('repository_name', None)
|
|
defaults = ", ".join(["%s='%s'" % var for var in six.iteritems(_vars)])
|
|
}}
|
|
|
|
if __name__ == '__main__':
|
|
main({{ defaults }})
|