cdgriffith / puremagic

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

EncodingWarning when PYTHONWARNDEFAULTENCODING #60

Closed jaraco closed 4 months ago

jaraco commented 5 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 5 months ago

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

cdgriffith commented 4 months ago

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