[orca] Fix a null check
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Fix a null check
- Date: Mon, 15 Feb 2016 19:41:11 +0000 (UTC)
commit 85d5ab181470aa00ab3240cf3a5a568a5a47151d
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Mon Feb 15 14:38:39 2016 -0500
Fix a null check
src/orca/scripts/web/script_utilities.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/web/script_utilities.py b/src/orca/scripts/web/script_utilities.py
index 622a3a3..425d996 100644
--- a/src/orca/scripts/web/script_utilities.py
+++ b/src/orca/scripts/web/script_utilities.py
@@ -2905,7 +2905,7 @@ class Utilities(script_utilities.Utilities):
result.append(messages.tableCount(counts.get('tables', 0), onlyIfFound))
result.append(messages.visitedLinkCount(counts.get('visitedLinks', 0), onlyIfFound))
result.append(messages.unvisitedLinkCount(counts.get('unvisitedLinks', 0), onlyIfFound))
- result = filter(lambda x: x, result)
+ result = list(filter(lambda x: x, result))
if not result:
return ""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]