commit:     c7a27f6eb028ef5aedfa3145f9db921ff47d0f50
Author:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Wed May 14 23:52:23 2014 +0000
Commit:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Fri May 16 01:06:46 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=c7a27f6e

dbbase.py: Fixes implicit tuple unpacking

A temporary variable is assigned to fix the lack of implicit tuple
unpacking in py3.

---
 layman/dbbase.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/layman/dbbase.py b/layman/dbbase.py
index 3632a57..1cbf0bb 100644
--- a/layman/dbbase.py
+++ b/layman/dbbase.py
@@ -312,7 +312,7 @@ class DbBase(object):
                 result.append((overlay.short_list(width), 
overlay.is_supported(),
                                overlay.is_official()))
 
-        result = sorted(result, key=lambda (summary, supported, official): 
summary.lower())
+        result = sorted(result, key=lambda summary_supported_official: 
summary_supported_official[0].lower())
 
         return result
 

Reply via email to