diff options
author | 2020-05-07 22:25:15 +0200 | |
---|---|---|
committer | 2020-05-07 22:25:15 +0200 | |
commit | 6f7e496c82c0f3f0c194e78691af8ba2e3a65b8e (patch) | |
tree | 80c4551bfe1e84dcb19907b5480ec2b9827d3bd8 | |
parent | html/generate.py: improve cache file handling (diff) | |
download | gentoo-mirrorstats-6f7e496c82c0f3f0c194e78691af8ba2e3a65b8e.tar.gz gentoo-mirrorstats-6f7e496c82c0f3f0c194e78691af8ba2e3a65b8e.tar.bz2 gentoo-mirrorstats-6f7e496c82c0f3f0c194e78691af8ba2e3a65b8e.zip |
Fix os.chmod by using an int instead of a string
Signed-off-by: Max Magorsch <arzano@gentoo.org>
-rwxr-xr-x | html/generate.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |