From: Arfrever Frehtes Taifersar Arahesis Date: Wed, 23 Sep 2009 17:48:34 +0000 (-0000) Subject: Fix "TypeError: object of type 'filter' has no len()". X-Git-Tag: v2.2_rc42~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=706b85f0ee885804e0fd3ac1224d9bdab8f4bde9;p=portage.git Fix "TypeError: object of type 'filter' has no len()". svn path=/main/trunk/; revision=14395 --- diff --git a/bin/repoman b/bin/repoman index f9a62a1ca..faed9a2ba 100755 --- a/bin/repoman +++ b/bin/repoman @@ -1497,8 +1497,8 @@ for x in scanlist: stats[m+".syntax"] += 1 fails[m+".syntax"].append(catpkg+".ebuild "+m+": "+b) - badlicsyntax = len(filter(lambda x:x=="LICENSE", type_list)) - badprovsyntax = len(filter(lambda x:x=="PROVIDE", type_list)) + badlicsyntax = len([x for x in type_list if x == "LICENSE"]) + badprovsyntax = len([x for x in type_list if x == "PROVIDE"]) baddepsyntax = len(type_list) != badlicsyntax + badprovsyntax badlicsyntax = badlicsyntax > 0 badprovsyntax = badprovsyntax > 0