Commit ce2e5c51 authored by Vinzenz Feenstra's avatar Vinzenz Feenstra

Set pypa option for not handling future import errors

Signed-off-by: default avatarVinzenz Feenstra <evilissimo@gmail.com>
parent 4c7b796a
...@@ -816,6 +816,7 @@ AST_Module* pypa_parse(char const* file_path) { ...@@ -816,6 +816,7 @@ AST_Module* pypa_parse(char const* file_path) {
options.printerrors = false; options.printerrors = false;
options.python3allowed = false; options.python3allowed = false;
options.python3only = false; options.python3only = false;
options.handle_future_errors = false;
options.error_handler = pypaErrorHandler; options.error_handler = pypaErrorHandler;
if (pypa::parse(lexer, module, symbols, options) && module) { if (pypa::parse(lexer, module, symbols, options) && module) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment