[meld] recent: Clean up some indentation with nicer comprehensions



commit 1d53130c7b22ec8e194e06647d9f9b40ecf077ad
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Sun Dec 17 06:26:48 2017 +1000

    recent: Clean up some indentation with nicer comprehensions

 meld/recent.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/meld/recent.py b/meld/recent.py
index c52acf73..4074c29f 100644
--- a/meld/recent.py
+++ b/meld/recent.py
@@ -155,11 +155,11 @@ class RecentFiles(object):
             raise ValueError("Invalid recent comparison file")
 
         if config.has_option("Comparison", "uris"):
-            gfiles = tuple([Gio.File.new_for_uri(u)
-                for u in tuple(config.get("Comparison", "uris").split(";"))])
+            uris = config.get("Comparison", "uris").split(";")
+            gfiles = [Gio.File.new_for_uri(u) for u in uris]
         else:
-            gfiles = tuple([Gio.File.new_for_path(p)
-                for p in tuple(config.get("Comparison", "paths").split(";"))])
+            paths = config.get("Comparison", "paths").split(";")
+            gfiles = [Gio.File.new_for_path(p) for p in paths]
         flags = tuple()
 
         return recent_type, gfiles, flags


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]