Kaydet (Commit) 9ba0b6bb authored tarafından Michael Stahl's avatar Michael Stahl Kaydeden (comit) Andras Timar

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

Change-Id: I8e4983a91d4f97a2a20fbeed89d4e0f186c35fad
(cherry picked from commit f29ac1d9)
Reviewed-on: https://gerrit.libreoffice.org/17373Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarAdolfo Jayme Barrientos <fitojb@ubuntu.com>
üst bc7768a6
...@@ -213,7 +213,7 @@ class BigPtrArrayPrinter(object): ...@@ -213,7 +213,7 @@ class BigPtrArrayPrinter(object):
# accessing this is completely non-obvious... # accessing this is completely non-obvious...
# also, node.dynamic_cast(node.dynamic_type) is null? # also, node.dynamic_cast(node.dynamic_type) is null?
value = " TextNode " + \ 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": elif str(node.dynamic_type.target()) == "SwOLENode":
value = " OLENode " value = " OLENode "
elif str(node.dynamic_type.target()) == "SwGrfNode": 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