From 9f2ec133e11463d0f71d89856f34a56829091d5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 27 Oct 2023 11:09:20 +0200 Subject: [PATCH] use rstrip to remove trailing newlines --- buildbot_nix/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildbot_nix/__init__.py b/buildbot_nix/__init__.py index f221f08..a0f1d8b 100644 --- a/buildbot_nix/__init__.py +++ b/buildbot_nix/__init__.py @@ -548,7 +548,7 @@ def read_secret_file(secret_name: str) -> str: if directory is None: print("directory not set", file=sys.stderr) sys.exit(1) - return Path(directory).joinpath(secret_name).read_text().strip() + return Path(directory).joinpath(secret_name).read_text().rstrip() @dataclass