diff mercurial/color.py @ 40521:49746e53ac92

ui: simplify interface of low-level write() functions _write() and _write_err() will be replaced with fout.write() and ferr.write() respectively. This is the first step.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 03 Nov 2018 17:36:10 +0900
parents 824b687ff6af
children 51091816a355
line wrap: on
line diff
--- a/mercurial/color.py	Sat Nov 03 17:32:35 2018 +0900
+++ b/mercurial/color.py	Sat Nov 03 17:36:10 2018 +0900
@@ -529,7 +529,7 @@
                         attr = mapcolor(int(sattr), attr)
                 ui.flush()
                 _kernel32.SetConsoleTextAttribute(stdout, attr)
-                writefunc(m.group(2), **opts)
+                writefunc(m.group(2))
                 m = re.match(ansire, m.group(3))
         finally:
             # Explicitly reset original attributes