[orca] Add missing string substitutions for debugging output
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Add missing string substitutions for debugging output
- Date: Tue, 2 Jun 2015 17:41:03 +0000 (UTC)
commit a5aaeecc964e66ef26029e3e5d6945fe7e3f9a46
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Jun 2 13:40:42 2015 -0400
Add missing string substitutions for debugging output
.../scripts/toolkits/Gecko/script_utilities.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/toolkits/Gecko/script_utilities.py
b/src/orca/scripts/toolkits/Gecko/script_utilities.py
index 0215562..8be17d6 100644
--- a/src/orca/scripts/toolkits/Gecko/script_utilities.py
+++ b/src/orca/scripts/toolkits/Gecko/script_utilities.py
@@ -764,14 +764,15 @@ class Utilities(script_utilities.Utilities):
def _getTextAtOffset(self, obj, offset, boundary):
if not obj:
msg = "INFO: Results for text at offset %i for %s using %s:\n" \
- " String: '', Start: 0, End: 0. (obj is None)"
+ " String: '', Start: 0, End: 0. (obj is None)" % (offset, obj, boundary)
debug.println(debug.LEVEL_INFO, msg)
return '', 0, 0
text = self.queryNonEmptyText(obj)
if not text:
msg = "INFO: Results for text at offset %i for %s using %s:\n" \
- " String: '', Start: 0, End: 1. (queryNonEmptyText() returned None)"
+ " String: '', Start: 0, End: 1. (queryNonEmptyText() returned None)" \
+ % (offset, obj, boundary)
debug.println(debug.LEVEL_INFO, msg)
return '', 0, 1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]