diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-07-24 18:23:22 +0200 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2015-07-28 00:41:55 +0000 |
commit | fa7ed011cdcd7030c4c84afcdf166b90faf60afa (patch) | |
tree | 032cb4f9e13adb26612c0c9b29e6a0845b04f59b /solenv | |
parent | f9d216f0e100ec906c12ea5ceeb055f936d7c1e8 (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/17372
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gdb/libreoffice/sw.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/solenv/gdb/libreoffice/sw.py b/solenv/gdb/libreoffice/sw.py index 71445d5b0b77..eba82a82cd59 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": |