summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Magorsch <arzano@gentoo.org>2020-05-07 22:44:12 +0200
committerMax Magorsch <arzano@gentoo.org>2020-05-07 22:44:12 +0200
commit30f11878cf9a37ba3ab5759db5d0546be4e6f0d5 (patch)
tree1cae9680de4de7695c3106aa8338c5ca4412347a
parentFix os.chmod by using an int instead of a string (diff)
downloadgentoo-mirrorstats-30f11878cf9a37ba3ab5759db5d0546be4e6f0d5.tar.gz
gentoo-mirrorstats-30f11878cf9a37ba3ab5759db5d0546be4e6f0d5.tar.bz2
gentoo-mirrorstats-30f11878cf9a37ba3ab5759db5d0546be4e6f0d5.zip
Fix the chmod by using the 0o prefix
Signed-off-by: Max Magorsch <arzano@gentoo.org>
-rwxr-xr-xhtml/generate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/html/generate.py b/html/generate.py
index 3d7c458..d88e030 100755
--- a/html/generate.py
+++ b/html/generate.py
@@ -177,7 +177,7 @@ template.stream(lastUpdate=lastUpdate).dump(html_folder + "help.html")
#
with tempfile.NamedTemporaryFile(dir=os.path.dirname(cache_path), delete=False, mode='wt') as fout:
json.dump(cache_data, fout)
- os.chmod(fout.name, 644)
+ os.chmod(fout.name, 0o644)
os.replace(fout.name, cache_path)