Mercurial > public > mercurial-scm > hg-stable
diff mercurial/color.py @ 31131:1613c55ad3d6
color: pass 'ui' to 'win32print'
Same logic as before,'win32print' relies on some data we will move on the 'ui'
object soon, we update the API beforehand for clarity.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Sun, 06 Nov 2016 20:10:53 +0100 |
parents | 268caf97c38f |
children | f5131d4f512a |
line wrap: on
line diff
--- a/mercurial/color.py Sat Feb 25 15:00:51 2017 +0100 +++ b/mercurial/color.py Sun Nov 06 20:10:53 2016 +0100 @@ -423,11 +423,11 @@ ansire = re.compile('\033\[([^m]*)m([^\033]*)(.*)', re.MULTILINE | re.DOTALL) - def win32print(writefunc, *msgs, **opts): + def win32print(ui, writefunc, *msgs, **opts): for text in msgs: - _win32print(text, writefunc, **opts) + _win32print(ui, text, writefunc, **opts) - def _win32print(text, writefunc, **opts): + def _win32print(ui, text, writefunc, **opts): label = opts.get('label', '') attr = origattr