Files
codeql/python/ql/test/query-tests/Diagnostics/bad_encoding.py
Rasmus Wriedt Larsen deb3db3f95 Python: Add non-alert data for extractor diagnostics
This is basically just a port of the C++/JS queries added in:

- https://github.com/github/codeql/pull/5414 (C++)
- https://github.com/github/codeql/pull/5656 (JS)

SyntaxError should capture all errors we have information about. At least in
`python/ql/src/semmlecode.python.dbscheme` the only match for `error` is
`py_syntax_error_versioned` (which `SyntaxError` is based on).
2021-04-23 13:29:44 +02:00

3 lines
91 B
Python
Raw Blame History

# Note: This file has been encoded in Windows 1252 to provoke encoding error
print("wat<EFBFBD>")