[gnome-code-assistance] [backends/c]: wrap filtered elements to a list
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-code-assistance] [backends/c]: wrap filtered elements to a list
- Date: Mon, 11 Nov 2013 08:57:13 +0000 (UTC)
commit 0d45a0f46cf8e2f42f971378bf10582afccc1239
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Mon Nov 11 09:56:40 2013 +0100
[backends/c]: wrap filtered elements to a list
backends/c/__init__.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/backends/c/__init__.py b/backends/c/__init__.py
index 4152cb7..6afc4a4 100644
--- a/backends/c/__init__.py
+++ b/backends/c/__init__.py
@@ -137,7 +137,7 @@ class Document(transport.Document, transport.Diagnostics):
severity = self._map_cseverity(d.severity)
ranges = [self._map_csource_range(r) for r in d.ranges]
- ranges = filter(lambda x: not x is None, ranges)
+ ranges = list(filter(lambda x: not x is None, ranges))
ranges.insert(0, loc.to_range())
fixits = [self._map_cfixit(f) for f in d.fixits]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]