Skip to content

Commit

Permalink
Revert "version.py: Fix CI failure on macOS by avoiding inline if sta…
Browse files Browse the repository at this point in the history
…tement"

This reverts commit 63b841e.
  • Loading branch information
davidebeatrici committed Feb 20, 2021
1 parent 2969237 commit cabcba1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ def main():
parser.add_argument('-n', '--newline', action = 'store_true', help = 'Break line after printing version')
args = parser.parse_args()

if args.newline:
end = None
else:
end = ''
end = None if args.newline else ''

version = None
with open('CMakeLists.txt', 'r') as file:
Expand Down

0 comments on commit cabcba1

Please sign in to comment.