requirements/openstack_requirements/utils.py
Tony Breeds b12966c487 Update code to use a std. read_requirements_file()
Change-Id: I48c26cc432a0322c5482bc1645537f59c1f6717d
2022-08-08 17:30:16 -05:00

8 lines
182 B
Python

from openstack_requirements import requirement
def read_requirements_file(filename):
with open(filename, 'rt') as f:
body = f.read()
return requirement.parse(body)