mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-07 12:05:33 +00:00
Improve function parse_requirements docstring
This commit is contained in:
parent
882a0d3ec3
commit
a78203dc2b
@ -225,6 +225,10 @@ def join(f):
|
|||||||
def parse_requirements(file_):
|
def parse_requirements(file_):
|
||||||
"""Parse a requirements formatted file.
|
"""Parse a requirements formatted file.
|
||||||
|
|
||||||
|
Traverse a string until a delimiter is detected, then split at said
|
||||||
|
delimiter, get module name by element index, create a dict consisting of
|
||||||
|
module:version, and add dict to list of parsed modules.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
file_: File to parse.
|
file_: File to parse.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user