Closed arossert closed 2 years ago
Also it is a good idea to think of use
async
file operations with aiofiles or aiofile
@arossert Reading files is pretty quick since they are present(or absent) locally unlike api calls that have network latency. IMO it's not worth the effort to use async
for file operations that would result in additional dependencies and code complexity. The current detection speed is more than sufficient.
Would you accept the PR that wil close the file (using the read_text() function) ?
Created a PR #14 😃
Thanks for the work folks! Closing this, as #14 has been merged.
When reading the
self.vendor_file
the file is not closed, I will be happy to create a PR to use Path.read_text() instead of theopen()
call so the file will be closed.