mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
gh-111201: Remove readline dependency from the PyREPL (#119262)
This commit is contained in:
parent
e3ed574f6a
commit
561ff1fa71
3 changed files with 3 additions and 3 deletions
|
@ -31,9 +31,9 @@ from __future__ import annotations
|
|||
from dataclasses import dataclass, field
|
||||
|
||||
import os
|
||||
import readline
|
||||
from site import gethistoryfile # type: ignore[attr-defined]
|
||||
import sys
|
||||
from rlcompleter import Completer as RLCompleter
|
||||
|
||||
from . import commands, historical_reader
|
||||
from .completing_reader import CompletingReader
|
||||
|
@ -84,7 +84,7 @@ __all__ = [
|
|||
|
||||
@dataclass
|
||||
class ReadlineConfig:
|
||||
readline_completer: Completer | None = readline.get_completer()
|
||||
readline_completer: Completer | None = RLCompleter().complete
|
||||
completer_delims: frozenset[str] = frozenset(" \t\n`~!@#$%^&*()-=+[{]}\\|;:'\",<>/?")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue