From 63b841efc01897bb26b5bb969306e9bf33c37823 Mon Sep 17 00:00:00 2001 From: Davide Beatrici Date: Sat, 20 Feb 2021 16:55:43 +0100 Subject: [PATCH] version.py: Fix CI failure on macOS by avoiding inline if statement File "version.py", line 25 print(version, end = end) ^ SyntaxError: invalid syntax --- version.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/version.py b/version.py index 6ccacd27..4d02c2cf 100644 --- a/version.py +++ b/version.py @@ -5,7 +5,10 @@ def main(): parser.add_argument('-n', '--newline', action = 'store_true', help = 'Break line after printing version') args = parser.parse_args() - end = None if args.newline else '' + if args.newline: + end = None + else: + end = '' version = None with open('CMakeLists.txt', 'r') as file: