1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2025-07-07 00:04:57 +03:00

Merge PR #1271: version.py: Fix CI failure on macOS by avoiding inline if statement

This commit is contained in:
Davide Beatrici
2021-02-20 17:11:32 +01:00
committed by GitHub

View File

@ -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: