]> git.phdru.name Git - dotfiles.git/commitdiff
lib/python/init.py: Fix `Pager.pprint()` under Windows terminal
authorOleg Broytman <phd@phdru.name>
Sun, 11 Jan 2026 04:18:56 +0000 (07:18 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 11 Jan 2026 11:10:29 +0000 (14:10 +0300)
lib/python/init.py

index 7249b4a252721afc1f2a807f88ed47d0e7dcc457..79de3586a550444d2ea39205c1327192a840c783 100644 (file)
@@ -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()