[orca] Remove a missed call to str.decode()



commit 0f8a96cd4e56f1bd56b69ea5c487bf38d996eec1
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sat Dec 8 19:38:33 2012 +0100

    Remove a missed call to str.decode()

 src/orca/label_inference.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/label_inference.py b/src/orca/label_inference.py
index 1436f70..3ff0d00 100644
--- a/src/orca/label_inference.py
+++ b/src/orca/label_inference.py
@@ -146,7 +146,7 @@ class LabelInference:
         except NotImplementedError:
             return True
 
-        string = text.getText(0, -1).decode('UTF-8').strip()
+        string = text.getText(0, -1).strip()
         if string.find(self._script.EMBEDDED_OBJECT_CHARACTER) > -1:
             return len(string) == 1
 



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