[pygobject] [gi] wrap map in a list for Python 3 compat
- From: John Palmieri <johnp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] [gi] wrap map in a list for Python 3 compat
- Date: Fri, 4 Mar 2011 16:13:10 +0000 (UTC)
commit d5ddaa92e6349c2f52b67317326060973cb69661
Author: John (J5) Palmieri <johnp redhat com>
Date: Wed Mar 2 15:37:27 2011 -0500
[gi] wrap map in a list for Python 3 compat
gi/types.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/types.py b/gi/types.py
index ed568d1..34d2549 100644
--- a/gi/types.py
+++ b/gi/types.py
@@ -244,7 +244,7 @@ def mro(C):
bases_of_subclasses = [[C]]
if C.__bases__:
- bases_of_subclasses += map(mro, C.__bases__) + [list(C.__bases__)]
+ bases_of_subclasses += list(map(mro, C.__bases__)) + [list(C.__bases__)]
while bases_of_subclasses:
for subclass_bases in bases_of_subclasses:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]