commit:     bd5d65f3a1c6030fa63f6f3972a67f688d015cbc
Author:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 27 17:36:22 2015 +0000
Commit:     Devan Franchini <twitch153 <AT> gentoo <DOT> org>
CommitDate: Thu Aug 27 17:36:22 2015 +0000
URL:        https://gitweb.gentoo.org/proj/layman.git/commit/?id=bd5d65f3

overlay.py: Improves to_json() setting of descriptions

 layman/overlays/overlay.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/layman/overlays/overlay.py b/layman/overlays/overlay.py
index 31fe400..defa4e3 100755
--- a/layman/overlays/overlay.py
+++ b/layman/overlays/overlay.py
@@ -661,9 +661,7 @@ class Overlay(object):
         if self.license != None:
             repo['@license'] = self.license
         repo['name'] = self.name
-        repo['description'] = []
-        for i in self.descriptions:
-            repo['description'].append(i)
+        repo['description'] = [i for i in self.descriptions]
         if self.homepage != None:
             repo['homepage'] = self.homepage
         if self.irc != None:

Reply via email to