diff options
author | Simon Feltman <sfeltman@src.gnome.org> | 2014-04-28 23:33:59 -0700 |
---|---|---|
committer | Thomas A Caswell <tcaswell@gmail.com> | 2015-09-29 14:43:14 -0400 |
commit | d9a9f70ef6e3b1ef0f4baccf94780d286e51bbb0 (patch) | |
tree | cf2fbae8e6364e521da2132cbefed09ff636b404 /giscanner/transformer.py | |
parent | a75e72763a52757daea4c1f917dc2922029a3af5 (diff) | |
download | gobject-introspection-d9a9f70ef6e3b1ef0f4baccf94780d286e51bbb0.tar.gz |
giscanner: Convert map() results to list
Convert the results map() calls to a list for Python 3 compatibility.
In Python 3, map() returns an iterable "map object" which does not
allow indexing or iteration more than once.
https://bugzilla.gnome.org/show_bug.cgi?id=679438
Diffstat (limited to 'giscanner/transformer.py')
-rw-r--r-- | giscanner/transformer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py index 6cd7dc28..2d5c04d7 100644 --- a/giscanner/transformer.py +++ b/giscanner/transformer.py @@ -278,7 +278,7 @@ currently-scanned namespace is first.""" unprefixed_namespaces.append(ns) if matches: matches.sort(self._sort_matches) - return map(lambda x: (x[0], x[1]), matches) + return list(map(lambda x: (x[0], x[1]), matches)) elif self._accept_unprefixed: return [(self._namespace, name)] elif unprefixed_namespaces: |