diff options
author | Irit Katriel <1055913+iritkatriel@users.noreply.github.com> | 2023-05-31 19:21:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-31 19:21:46 (GMT) |
commit | f990bb8b2d8ee900fe4b0775399f6ef4ca61bb3f (patch) | |
tree | ee881a03ea85e09057749e8ef82838b657dbaa02 /Python/traceback.c | |
parent | dd29ae26f89ba7db596127b6eba83bb3a45c167b (diff) | |
download | cpython-f990bb8b2d8ee900fe4b0775399f6ef4ca61bb3f.zip cpython-f990bb8b2d8ee900fe4b0775399f6ef4ca61bb3f.tar.gz cpython-f990bb8b2d8ee900fe4b0775399f6ef4ca61bb3f.tar.bz2 |
gh-105148: make _PyASTOptimizeState internal to ast_opt.c (#105149)
Diffstat (limited to 'Python/traceback.c')
-rw-r--r-- | Python/traceback.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Python/traceback.c b/Python/traceback.c index b247954..a58df04 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -675,16 +675,12 @@ extract_anchors_from_line(PyObject *filename, PyObject *line, PyCompilerFlags flags = _PyCompilerFlags_INIT; - _PyASTOptimizeState state; - state.optimize = _Py_GetConfig()->optimization_level; - state.ff_features = 0; - mod_ty module = _PyParser_ASTFromString(segment_str, filename, Py_file_input, &flags, arena); if (!module) { goto done; } - if (!_PyAST_Optimize(module, arena, &state)) { + if (!_PyAST_Optimize(module, arena, _Py_GetConfig()->optimization_level, 0)) { goto done; } |