commit: 6f7e496c82c0f3f0c194e78691af8ba2e3a65b8e
Author: Max Magorsch <arzano <AT> gentoo <DOT> org>
AuthorDate: Thu May 7 20:25:15 2020 +0000
Commit: Max Magorsch <arzano <AT> gentoo <DOT> org>
CommitDate: Thu May 7 20:25:15 2020 +0000
URL:
https://gitweb.gentoo.org/proj/gentoo-mirrorstats.git/commit/?id=6f7e496c
Fix os.chmod by using an int instead of a string
Signed-off-by: Max Magorsch <arzano <AT> gentoo.org>
html/generate.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/html/generate.py b/html/generate.py
index 8d79cbe..3d7c458 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, '0644')
+ os.chmod(fout.name, 644)
os.replace(fout.name, cache_path)