mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 00:38:45 -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():
|
def get_version_from_file():
|
||||||
if vf := version_file():
|
vf = version_file()
|
||||||
|
if vf:
|
||||||
with open(vf, 'r') as file:
|
with open(vf, 'r') as file:
|
||||||
return file.read().strip()
|
return file.read().strip()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user