From 51d8b1301653856a866053b2ec3d39dd3d782e3f Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Tue, 12 Mar 2024 18:48:17 +0100 Subject: version bump and formating --- script/install.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'script/install.py') diff --git a/script/install.py b/script/install.py index e08f8c5..64a8f7b 100644 --- a/script/install.py +++ b/script/install.py @@ -21,10 +21,8 @@ def install_service_unit(prefix): else: raise KeyError(match[1]) - service_text_in = open( - project_path / "script" / "jwebmail.service.in", mode="r" - ).read() - service_text = re.sub("@(\w+)@", substitute, service_text_in, flags=re.ASCII) + service_text_in = open(project_path / "script" / "jwebmail.service.in").read() + service_text = re.sub(r"@(\w+)@", substitute, service_text_in, flags=re.ASCII) install_path.mkdir(0o755, True, True) @@ -32,4 +30,4 @@ def install_service_unit(prefix): if __name__ == "__main__": - install_service_unit(sys.argv[1] if len(sys.argv) == 2 else '') + install_service_unit(sys.argv[1] if len(sys.argv) == 2 else "") -- cgit v1.2.3