From f5d3643965f51748b08b616b2898e53242673a67 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 22 Apr 2014 13:19:27 +0200 Subject: Use python3 friendly file mode --- whatmaps/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whatmaps/command.py b/whatmaps/command.py index 3e8773b..3225f54 100755 --- a/whatmaps/command.py +++ b/whatmaps/command.py @@ -104,7 +104,7 @@ def write_cmd_file(services, cmd_file, distro): logging.debug("Need to restart %s", service) print(" ".join(distro.restart_service_cmd(service)), file=out) out.close() - os.chmod(cmd_file, 0755) + os.chmod(cmd_file, 0o755) def main(argv): -- cgit v1.2.3