roskakori / pygount

count lines of code for hundreds of languages using pygments
https://pygount.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
149 stars 19 forks source link

Switch to using pathlib #89

Open zmievsa opened 2 years ago

zmievsa commented 2 years ago

Goals

Estimate: 8h

Original request

Many parts of the project can be both sped up (though insignificantly) and made more readable by replacing os usage with pathlib usage. File reading/writing can also be made more readable in some places using Path.read_text and Path.write_text. If you have time on your hands, I think investing into this idea would be a good improvement

roskakori commented 2 years ago

Yes, probably a reasonable cleanup at some point.