mnooner256 / pyqrcode

Python 3 module to generate QR Codes
BSD 3-Clause "New" or "Revised" License
408 stars 74 forks source link

Skip detecting content type if constructor mode is given to constructor #50

Open rheenen opened 7 years ago

rheenen commented 7 years ago

The _detect_content_type method (called by the QRCode constructor) is dependant on the shiftjis encoding being present. On some Python installations this code will fail (we have a minimal Python setup with buildroot, excluding the Japanese and Chinese encodings to save file storage space).

I want the QRCode constructor to survive this condition by reverting back to 'binary' encoding.