1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-09-18 01:33:00 +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
commit 1fa6c14e4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: