Subject: bug#74894: 29.4; Emacs not responding when calling python-fix-imports

From: Eli Zaretskii <[email-masked]>
Date: Sat, 04 Jan 2025 13:46:48 +0200

[Please use Reply All, to have everyone CC'ed.]

> Date: Sun, 22 Dec 2024 14:35:51 +0000
> From: Keglo Stephane <[email-masked]>
> 
> This is a simple recipe to reproduce the bug:
> 1- open an empty python buffer
> 2- start an inferior python shell C-c C-p
> 3- Enter the following code:  print(string.digits) 
> 4- Evaluation of this code should throw an exception since the string module is not imported
> 5- Trying to use python-add-import ( C-c TAB a) or python-fix-imports ( C-c TAB fix) to add the missing
> import, Emacs freeze a moment.
> you have to press Ctrl-G to make Emacs respond again.

kobarity, any suggestions?