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

Change-Id: I8e4983a91d4f97a2a20fbeed89d4e0f186c35fad
This commit is contained in:
Michael Stahl 2015-07-24 18:23:22 +02:00
parent 8f4242e379
commit f29ac1d91b

View File

@ -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":