securesauce / precli

Precaution CLI - command line static application security testing tool
https://precli.readthedocs.io/
Other
21 stars 3 forks source link

Handle invalid coding for a Python file #481

Closed ericwb closed 4 months ago

ericwb commented 4 months ago

The header of a Python file can define the encoding of the source. However, if that codeing define is invalid, it should not affect the parsing of the file. It should ignore and proceed as if the file is utf-8.

Fixes: #480