mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-07 03:55:22 +00:00

str.partition() has nice advantages over str.split(): ```python to_append = item if "." not in item else item.split(".")[0] # is equivalent to... to_append = item.partition(".")[0] ``` Also tightened up generate_requirements_file() to send all data in a single write() operation