[orca] Remove assumption that utterance elements are strings
- From: William Walker <wwalker src gnome org>
- To: svn-commits-list gnome org
- Subject: [orca] Remove assumption that utterance elements are strings
- Date: Mon, 15 Jun 2009 11:00:57 -0400 (EDT)
commit 930922aede3c2e34e8fd8c24c3dedd83426d3766
Author: Willie Walker <william walker sun com>
Date: Mon Jun 15 10:57:02 2009 -0400
Remove assumption that utterance elements are strings
src/orca/scripts/toolkits/Gecko/script.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script.py b/src/orca/scripts/toolkits/Gecko/script.py
index c336fb1..f08c202 100644
--- a/src/orca/scripts/toolkits/Gecko/script.py
+++ b/src/orca/scripts/toolkits/Gecko/script.py
@@ -5453,7 +5453,8 @@ class Script(default.Script):
"""Returns the ACSS to speak anything for the given obj."""
if obj.getRole() == pyatspi.ROLE_LINK:
acss = self.voices[settings.HYPERLINK_VOICE]
- elif string and string.isupper() and string.strip().isalpha():
+ elif string and isinstance(string, basestring) \
+ and string.isupper() and string.strip().isalpha():
acss = self.voices[settings.UPPERCASE_VOICE]
else:
acss = self.voices[settings.DEFAULT_VOICE]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]