Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
golang/xenlight: fix code generation for python 2.6
Before python 2.7, str.format() calls required that the format fields were explicitly enumerated, e.g.: '{0} {1}'.format(foo, bar) vs. '{} {}'.format(foo, bar) Currently, gengotypes.py uses the latter pattern everywhere, which means the Go bindings do not build on python 2.6. Use the 2.6 syntax for format() in order to support python 2.6 for now. Signed-off-by: Nick Rosbrook <rosbrookn@ainfosec.com> Acked-by: Wei Liu <wl@xen.org> (cherry picked from commit 6d49fbd)
- Loading branch information