diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-03-06 11:29:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-03-06 11:31:49 +0300 |
commit | 11efc9087b27099b9d3f31ae45e622ede831a965 (patch) | |
tree | c9b4e3ea107a0682600751f016b3c8d342eecb16 /release/scripts | |
parent | 995bb0860a540e2f0240dc34a1f2628dcf87e09a (diff) |
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.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/modules/console_python.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/release/scripts/modules/console_python.py b/release/scripts/modules/console_python.py index 5106010b555..9e1b921774d 100644 --- a/release/scripts/modules/console_python.py +++ b/release/scripts/modules/console_python.py @@ -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"] |