mirror of
https://github.com/ansible/awx.git
synced 2026-01-09 23:12:08 -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:
parent
fcdda8d7a7
commit
f67a2d2f46
@ -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()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user