Kaydet (Commit) f29ac1d9 authored tarafından Michael Stahl's avatar Michael Stahl

gdb pretty printer for SwNodes fails on Python 3 due to "unicode"

Change-Id: I8e4983a91d4f97a2a20fbeed89d4e0f186c35fad
üst 8f4242e3
......@@ -213,7 +213,7 @@ class BigPtrArrayPrinter(object):
# accessing this is completely non-obvious...
# also, node.dynamic_cast(node.dynamic_type) is null?
value = " TextNode " + \
unicode(node.cast(node.dynamic_type).dereference()['m_Text'])
six.text_type(node.cast(node.dynamic_type).dereference()['m_Text'])
elif str(node.dynamic_type.target()) == "SwOLENode":
value = " OLENode "
elif str(node.dynamic_type.target()) == "SwGrfNode":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment