[3.13] gh-111201: Remove readline dependency from the PyREPL (GH-119262) (#119403)

(cherry picked from commit 561ff1fa71)
This commit is contained in:
Lysandros Nikolaou 2024-05-22 11:45:11 -04:00 committed by GitHub
parent 721459831a
commit ac9163637b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View file

@ -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
@ -81,7 +81,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`~!@#$%^&*()-=+[{]}\\|;:'\",<>/?")