summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-07-24 18:23:22 +0200
committerAndras Timar <andras.timar@collabora.com>2015-08-06 12:56:57 +0200
commit9ba0b6bb9aed62b0a29562cdf447c9b37f3fd499 (patch)
tree0f5bacbda8e4baf127cfb828e4e03a5cf29a6633 /solenv
parentbc7768a674350730fb6e2f22af48b27750fb255d (diff)
gdb pretty printer for SwNodes fails on Python 3 due to "unicode"
Change-Id: I8e4983a91d4f97a2a20fbeed89d4e0f186c35fad (cherry picked from commit f29ac1d91b12ab2f55d7ab7afce62238a59b8cba) Reviewed-on: https://gerrit.libreoffice.org/17373 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gdb/libreoffice/sw.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/gdb/libreoffice/sw.py b/solenv/gdb/libreoffice/sw.py
index fa7375914563..19c1a75cda45 100644
--- a/solenv/gdb/libreoffice/sw.py
+++ b/solenv/gdb/libreoffice/sw.py
@@ -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":