fix(lean-gdb): do not print the u in u"limb" in python 2

This commit is contained in:
Gabriel Ebner 2016-11-07 12:25:44 -05:00 committed by Leonardo de Moura
parent 7da0acc3fd
commit d4fdea6751

View file

@ -9,7 +9,7 @@ class LeanNamePrinter:
def to_string(self):
def rec(imp):
s = repr(imp['m_str'].string()) if imp['m_is_string'] else str(imp['m_k'])
s = ("'%s'" % imp['m_str'].string()) if imp['m_is_string'] else str(imp['m_k'])
if imp['m_prefix']:
return "%s.%s" % (rec(imp['m_prefix'].dereference()), s)
else: