[orca] Fix yet another unicode encoding traceback
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix yet another unicode encoding traceback
- Date: Wed, 22 Feb 2012 18:34:54 +0000 (UTC)
commit 6bb34bb1bbd41f6b85444d425ea0817d8352f0f5
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Wed Feb 22 13:33:57 2012 -0500
Fix yet another unicode encoding traceback
src/orca/speech.py | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/orca/speech.py b/src/orca/speech.py
index 3c5712d..0796e92 100644
--- a/src/orca/speech.py
+++ b/src/orca/speech.py
@@ -260,10 +260,11 @@ def speak(content, acss=None, interrupt=True):
element.play()
if toSpeak:
- try:
- toSpeak = map(lambda x: x.decode("UTF-8"), toSpeak)
- except UnicodeEncodeError:
- pass
+ for i, item in enumerate(toSpeak):
+ try:
+ toSpeak[i] = item.decode("UTF-8")
+ except UnicodeEncodeError:
+ pass
string = " ".join(toSpeak)
_speak(string, activeVoice, interrupt)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]