mirror of
https://github.com/ansible/awx.git
synced 2026-02-03 10:38:15 -03:30
Make setup.py compatible with older pythons
This caused some annoying downstream failures I'd rather not fix right now.
This commit is contained in:
@@ -9,7 +9,8 @@ def use_scm_version():
|
||||
|
||||
|
||||
def get_version_from_file():
|
||||
if vf := version_file():
|
||||
vf = version_file()
|
||||
if vf:
|
||||
with open(vf, 'r') as file:
|
||||
return file.read().strip()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user