vstinner / hachoir

Hachoir is a Python library to view and edit a binary stream field by field
http://hachoir.readthedocs.io/
GNU General Public License v2.0
605 stars 70 forks source link

Don't hardcode errno constant #8

Closed jwilk closed 7 years ago

jwilk commented 7 years ago

The value of ENOENT is architecture-dependent, so don't assume it's always 2.

Found using pydiatra.

vstinner commented 7 years ago

Thanks! I modified the doc (commit 5c0043dbca1a8757ddeeea10a753b4a0024a09a4) to specify the Hachoir3 requires Python 3.3 or newer.