Cleanup: remove workaround for Python 3.7x crashing with libedit

This removes workaround for T43491. It's no longer needed as
Python 3.9x supports libedit as an alternative to readline
on all platforms.
This commit is contained in:
Campbell Barton 2021-03-06 19:29:03 +11:00
parent 995bb0860a
commit 11efc9087b
1 changed files with 0 additions and 13 deletions

View File

@ -229,8 +229,6 @@ execute.hooks = []
def autocomplete(context):
_readline_bypass()
from console import intellisense
sc = context.space_data
@ -358,14 +356,3 @@ def banner(context):
sc.prompt = PROMPT
return {'FINISHED'}
# workaround for readline crashing, see: T43491
def _readline_bypass():
if "rlcompleter" in sys.modules or "readline" in sys.modules:
return
# prevent 'rlcompleter' from loading the real 'readline' module.
sys.modules["readline"] = None
import rlcompleter
del sys.modules["readline"]