ovs-bugtool.in: Do not assign a lambda expression, use a def.
authorGurucharan Shetty <guru@ovn.org>
Mon, 6 Jun 2016 06:56:51 +0000 (23:56 -0700)
committerGurucharan Shetty <guru@ovn.org>
Thu, 9 Jun 2016 18:04:46 +0000 (11:04 -0700)
Signed-off-by: Gurucharan Shetty <guru@ovn.org>
Acked-by: Ryan Moats <rmoats@us.ibm.com>
utilities/bugtool/ovs-bugtool.in

index 9744ca4..ecf01f6 100755 (executable)
@@ -288,7 +288,10 @@ def file_output(cap, path_list, newest_first=False, last_mod_time=None):
             if last_mod_time is None or s.st_mtime >= last_mod_time:
                 path_entries.append((path, s))
 
-        mtime = lambda(path, stat): stat.st_mtime
+        def mtime(arg):
+            (path, stat) = arg
+            return stat.st_mtime
+
         path_entries.sort(key=mtime, reverse=newest_first)
         for p in path_entries:
             if check_space(cap, p[0], p[1].st_size):