diff options
author | Alberto Bertogli <albertito@blitiri.com.ar> | 2020-05-24 03:36:43 +0200 |
---|---|---|
committer | Alberto Bertogli <albertito@blitiri.com.ar> | 2020-05-24 05:50:39 +0200 |
commit | 1183d6f817046a9f2b82a8d61b56046f046afb3f (patch) | |
tree | c97cd9382583fb5b7b9ae7c83efdc684ef7b3cf5 /views | |
parent | cbb36e087c1bcf1c81de53e920baf0c681abfd87 (diff) | |
download | git-arr-fork-1183d6f817046a9f2b82a8d61b56046f046afb3f.zip |
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.
Diffstat (limited to 'views')
-rw-r--r-- | views/tree-list.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ <table class="nice toggable ls" id="ls"> -% 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): <tr class="{{type}}"> % if type == "blob": |