[accerciser] Fix for bug 691141 - Interface Viewer does not populate in Python 3



commit f7dd12428451f160bfdb276feb94c6f7fc00ddd0
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Jan 4 13:09:35 2013 -0500

    Fix for bug 691141 - Interface Viewer does not populate in Python 3

 plugins/interface_view.py |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/plugins/interface_view.py b/plugins/interface_view.py
index f69e257..a382bb1 100644
--- a/plugins/interface_view.py
+++ b/plugins/interface_view.py
@@ -232,15 +232,8 @@ class _InterfaceSection(object):
     expander = expander or self.expander
     label = expander.get_label_widget()
     label_text = label.get_label()
-
-    if isinstance(label_text, str):
-        label_text = label_text.decode('UTF-8')
-
     not_implemented_str = _('(not implemented)')
 
-    if isinstance(not_implemented_str, str):
-        not_implemented_str = not_implemented_str.encode('UTF-8')
-
     if sensitive:
       label_text = label_text.replace(not_implemented_str, '')
       label_text = label_text.strip(' ')



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]