Fix build/sphinx_ext.py with tuple defaults for op params
authorIustin Pop <iustin@google.com>
Wed, 6 Mar 2013 11:04:12 +0000 (12:04 +0100)
committerIustin Pop <iustin@google.com>
Wed, 6 Mar 2013 14:37:16 +0000 (15:37 +0100)
commitc83c041084a58b410e2bc969829a1238d3777fbc
tree9132e45337620542de3b48a5047be970c3f7a627
parent67c15d8b42a19b33c86aa3b05703c902eb5c824d
Fix build/sphinx_ext.py with tuple defaults for op params

When an OpCode's parameter has a tuple as default value, this code
will break:

  buf.write("defaults to ``%s``" % default)

The patch fixes this and other potential cases by always passing a
tuple to '%'.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michele Tartara <mtartara@google.com>
lib/build/sphinx_ext.py