From: Oleg Broytman Date: Sun, 11 Jan 2026 04:18:56 +0000 (+0300) Subject: lib/python/init.py: Fix `Pager.pprint()` under Windows terminal X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=a2fc699ca5fa53af897caa0768a163a567e72b3e;p=dotfiles.git lib/python/init.py: Fix `Pager.pprint()` under Windows terminal --- 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()