cdgriffith / puremagic

Pure python implementation of identifying files based off their magic numbers
MIT License
170 stars 33 forks source link

EncodingWarning when PYTHONWARNDEFAULTENCODING #60

Closed jaraco closed 7 months ago

jaraco commented 8 months ago
 @ env PYTHONWARNDEFAULTENCODING=1 pip-run puremagic -- -c 'import puremagic'
/var/folders/f2/2plv6q2n7l932m2x004jlw340000gn/T/pip-run-pb4us6gg/puremagic/main.py:76: EncodingWarning: 'encoding' argument not specified
  with open(filename) as f:
NebularNerd commented 8 months ago

PR submitted to handle this. I'll have to look to add this to my own stuff. 🙂

cdgriffith commented 7 months ago

Added in https://github.com/cdgriffith/puremagic/releases/tag/1.22, thanks!