From a2fc699ca5fa53af897caa0768a163a567e72b3e Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 11 Jan 2026 07:18:56 +0300 Subject: [PATCH] lib/python/init.py: Fix `Pager.pprint()` under Windows terminal --- lib/python/init.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/python/init.py b/lib/python/init.py index 7249b4a..79de358 100644 --- a/lib/python/init.py +++ b/lib/python/init.py @@ -212,6 +212,9 @@ def init(): pprint(value, stream=ColoredFile(self.stdout, '\033[1;3%sm' % stdout_color)) + else: + def pprint(self, value): + pprint(value) def close(self): self.stdout.close() -- 2.47.3