Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Feb 9, 2020
1 parent ddfe526 commit 4cecfde
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@
version_dict = {}
with req_file.open('r') as f:
for line in f.readlines():
split_line = line.split('==')
version_dict[split_line[0]] = split_line[1].strip('\n').strip("'")
if '==' in line:
split_line = line.split('==')
version_dict[split_line[0]] = split_line[1].strip('\n').strip("'")
elif '>=' in line:
split_line = line.split('>=')
version_dict[split_line[0]] = split_line[1].strip('\n').strip("'")
else:
continue

print(version_dict)

Expand Down

0 comments on commit 4cecfde

Please sign in to comment.