]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-131189: Fix "msvcrt" import warning on Linux when "_ctypes" is not availabl...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 15 Jul 2025 08:12:45 +0000 (10:12 +0200)
committerGitHub <noreply@github.com>
Tue, 15 Jul 2025 08:12:45 +0000 (10:12 +0200)
commit115477399bb962193026a3035ab07a1c0cd52f9f
tree2afcf7ee26c7f912daf77242561ba7c843de6841
parent088d79e3ee86d31fe69caed1247db7b624f243b5
[3.14] gh-131189: Fix "msvcrt" import warning on Linux when "_ctypes" is not available. (GH-131201) (GH-136668)

Fix "msvcrt" import warning on Linux when "_ctypes" is not available.

On Linux, compiling without "libffi" causes a
"No module named 'msvcrt'" warning when launching PyREPL.
(cherry picked from commit f320c951c3220aa6727b581216463e8b3f8bcd6b)

Co-authored-by: Dzmitry Plashchynski <plashchynski@gmail.com>
Lib/_pyrepl/readline.py