From 1183d6f817046a9f2b82a8d61b56046f046afb3f Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Sun, 24 May 2020 02:36:43 +0100 Subject: Move to Python 3 Python 3 was released more than 10 years ago, and support for Python 2 is going away, with many Linux distributions starting to phase it out. This patch migrates git-arr to Python 3. The generated output is almost exactly the same, there are some minor differences such as HTML characters being quoted more aggresively, and handling of paths with non-utf8 values. --- views/tree-list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views') diff --git a/views/tree-list.html b/views/tree-list.html index 70f032a..ce5b0d6 100644 --- a/views/tree-list.html +++ b/views/tree-list.html @@ -1,5 +1,5 @@ -% key_func = lambda (t, n, s): (t != 'tree', n.raw) +% key_func = lambda x: (x[0] != 'tree', x[1].raw) % for type, name, size in sorted(tree.ls(dirname.raw), key = key_func): % if type == "blob": -- cgit v1.2.3