Skip to content

Commit

Permalink
golang/xenlight: fix code generation for python 2.6
Browse files Browse the repository at this point in the history
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
Nick Rosbrook authored and andyhhp committed Jun 17, 2021
1 parent 45710c0 commit b6a8c4f
Showing 1 changed file with 102 additions and 102 deletions.

0 comments on commit b6a8c4f

Please sign in to comment.