@@ -433,7 +433,7 @@ def setcopyright(): |
|
|
433 |
433 |
def sethelper(): |
434 |
434 |
builtins.help = _sitebuiltins._Helper() |
435 |
435 |
|
436 |
|
-def _register_readline(): |
|
436 |
+def enablerlcompleter(): |
437 |
437 |
"""If the readline module can be imported, the hook will set the Tab key |
438 |
438 |
as completion key and register ~/.python_history as history file. |
439 |
439 |
This can be overridden in the sitecustomize or usercustomize module, |
@@ -510,7 +510,7 @@ def _set_interactive_hook(): |
|
|
510 |
510 |
- Register an excepthook to detect pip usage in the REPL. |
511 |
511 |
""" |
512 |
512 |
def interactivehook(): |
513 |
|
-_register_readline() |
|
513 |
+enablerlcompleter() |
514 |
514 |
_register_detect_pip_usage_in_repl() |
515 |
515 |
|
516 |
516 |
sys.__interactivehook__ = interactivehook |