Skip to content

Commit 0e6d9e2

Browse files
committed
retain implicitly public API func name
1 parent e092342 commit 0e6d9e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/site.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def setcopyright():
433433
def sethelper():
434434
builtins.help = _sitebuiltins._Helper()
435435

436-
def _register_readline():
436+
def enablerlcompleter():
437437
"""If the readline module can be imported, the hook will set the Tab key
438438
as completion key and register ~/.python_history as history file.
439439
This can be overridden in the sitecustomize or usercustomize module,
@@ -510,7 +510,7 @@ def _set_interactive_hook():
510510
- Register an excepthook to detect pip usage in the REPL.
511511
"""
512512
def interactivehook():
513-
_register_readline()
513+
enablerlcompleter()
514514
_register_detect_pip_usage_in_repl()
515515

516516
sys.__interactivehook__ = interactivehook

0 commit comments

Comments
 (0)