[pygobject] [gi] wrap map in a list for Python 3 compat



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]