commit:     f14997a82324e6f3c708b19e0ca0fd38f89a8027
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: Wed May 14 23:52:23 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=f14997a8

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