Browse files

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

  • Loading branch information...
1 parent 3e5ab72 commit d5ddaa92e6349c2f52b67317326060973cb69661 John (J5) Palmieri committed Mar 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 gi/types.py
View
2 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:

0 comments on commit d5ddaa9

Please sign in to comment.