summaryrefslogtreecommitdiff
path: root/git-fat
diff options
context:
space:
mode:
Diffstat (limited to 'git-fat')
-rwxr-xr-xgit-fat6
1 files changed, 5 insertions, 1 deletions
diff --git a/git-fat b/git-fat
index 4a95d9e..dd6af72 100755
--- a/git-fat
+++ b/git-fat
@@ -15,6 +15,10 @@ import threading
import time
import collections
+if not type(sys.version_info) is tuple and sys.version_info.major > 2:
+ sys.stderr.write('git-fat does not support Python-3 yet. Please use python2.\n')
+ sys.exit(1)
+
try:
from subprocess import check_output
del check_output
@@ -533,7 +537,7 @@ class GitFat(object):
time1 = time.time()
self.verbose('Found %d paths in %.3f s' % (len(pathsizes), time1-time0))
maxlen = max(map(len,pathsizes)) if pathsizes else 0
- for path, sizes in sorted(pathsizes.items(), cmp=lambda (p1,s1),(p2,s2): cmp(max(s1),max(s2)), reverse=True):
+ for path, sizes in sorted(pathsizes.items(), key=lambda p,s: max(s), reverse=True):
print('%-*s filter=fat -text # %10d %d' % (maxlen, path,max(sizes),len(sizes)))
revlist.wait()
difftree.wait()