Skip to content

Commit

Permalink
[3.13] gh-123149: Suppress verbose repr in new REPL (GH-123151) (#123157
Browse files Browse the repository at this point in the history
)

gh-123149: Suppress verbose repr in new REPL (GH-123151)
(cherry picked from commit 833c58b)

Co-authored-by: James <[email protected]>
  • Loading branch information
miss-islington and SnoopJ authored Aug 19, 2024
1 parent c8f4069 commit 98c7196
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Lib/_pyrepl/readline.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,10 +342,10 @@ def do(self) -> None:
class _ReadlineWrapper:
f_in: int = -1
f_out: int = -1
reader: ReadlineAlikeReader | None = None
reader: ReadlineAlikeReader | None = field(default=None, repr=False)
saved_history_length: int = -1
startup_hook: Callback | None = None
config: ReadlineConfig = field(default_factory=ReadlineConfig)
config: ReadlineConfig = field(default_factory=ReadlineConfig, repr=False)

def __post_init__(self) -> None:
if self.f_in == -1:
Expand Down

0 comments on commit 98c7196

Please sign in to comment.