summaryrefslogtreecommitdiff
path: root/lorry.zip-importer
diff options
context:
space:
mode:
authorBen Brown <ben@demerara.io>2022-02-05 16:01:37 +0000
committerBen Brown <ben@demerara.io>2022-02-05 16:13:05 +0000
commit0ffd6856e172020e824ed61e7a6d00779c5999af (patch)
tree263fbbc75281dc137366064bdfce4b0072f7ad90 /lorry.zip-importer
parentcad5b2c2bbbac7015f3f2bf66f8af01bdbf943f8 (diff)
downloadlorry-0ffd6856e172020e824ed61e7a6d00779c5999af.tar.gz
Make flake8 happy
Diffstat (limited to 'lorry.zip-importer')
-rwxr-xr-xlorry.zip-importer26
1 files changed, 13 insertions, 13 deletions
diff --git a/lorry.zip-importer b/lorry.zip-importer
index 972ab2d..da70a08 100755
--- a/lorry.zip-importer
+++ b/lorry.zip-importer
@@ -1,17 +1,17 @@
#!/usr/bin/env python3
-## Copyright 2005-2015 Linus Torvalds and others
-## Copyright 2015, 2019, 2020 Codethink Limited
-##
-## Based on git's contrib/fast-import/import-zips.py; modified for Lorry.
-
-## zip archive frontend for git-fast-import
-##
-## For example:
-##
-## mkdir project; cd project; git init
-## python import-zips.py *.zip
-## git log --stat import-zips
+# Copyright 2005-2015 Linus Torvalds and others
+# Copyright 2015, 2019, 2021 Codethink Limited
+#
+# Based on git's contrib/fast-import/import-zips.py; modified for Lorry.
+
+# zip archive frontend for git-fast-import
+#
+# For example:
+#
+# mkdir project; cd project; git init
+# python import-zips.py *.zip
+# git log --stat import-zips
import calendar
import os.path
@@ -83,7 +83,7 @@ def export(zipfile, fast_import):
info = zip.getinfo(name)
commit_time = max(commit_time, zip_info_mtime(info))
- if common_prefix == None:
+ if common_prefix is None:
common_prefix = name[: name.rfind("/") + 1]
else:
while not name.startswith(common_prefix):