mirror of
https://github.com/python/cpython.git
synced 2025-09-15 13:16:12 +00:00
[3.13] gh-119521: Rename IncompleteInputError to _IncompleteInputError and remove from public API/ABI (GH-119680, GH-120955) (GH-120944)
- gh-119521: Rename IncompleteInputError to _IncompleteInputError and remove from public API/ABI (GH-119680) (cherry picked from commitce1064e4c9
) - gh-119521: Use `PyAPI_DATA`, not `extern`, for `_PyExc_IncompleteInputError` (GH-120955) (cherry picked from commitac61d58db0
) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
This commit is contained in:
parent
a19a5895b5
commit
447e07ab3d
11 changed files with 21 additions and 17 deletions
|
@ -65,7 +65,7 @@ def _maybe_compile(compiler, source, filename, symbol):
|
|||
try:
|
||||
compiler(source + "\n", filename, symbol)
|
||||
return None
|
||||
except IncompleteInputError as e:
|
||||
except _IncompleteInputError as e:
|
||||
return None
|
||||
except SyntaxError as e:
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue