mercurial/color.py
changeset 31114 1613c55ad3d6
parent 31113 268caf97c38f
child 31115 f5131d4f512a
equal deleted inserted replaced
31113:268caf97c38f 31114:1613c55ad3d6
   421         else:
   421         else:
   422             origattr = csbi.wAttributes
   422             origattr = csbi.wAttributes
   423             ansire = re.compile('\033\[([^m]*)m([^\033]*)(.*)',
   423             ansire = re.compile('\033\[([^m]*)m([^\033]*)(.*)',
   424                                 re.MULTILINE | re.DOTALL)
   424                                 re.MULTILINE | re.DOTALL)
   425 
   425 
   426     def win32print(writefunc, *msgs, **opts):
   426     def win32print(ui, writefunc, *msgs, **opts):
   427         for text in msgs:
   427         for text in msgs:
   428             _win32print(text, writefunc, **opts)
   428             _win32print(ui, text, writefunc, **opts)
   429 
   429 
   430     def _win32print(text, writefunc, **opts):
   430     def _win32print(ui, text, writefunc, **opts):
   431         label = opts.get('label', '')
   431         label = opts.get('label', '')
   432         attr = origattr
   432         attr = origattr
   433 
   433 
   434         def mapcolor(val, attr):
   434         def mapcolor(val, attr):
   435             if val == -1:
   435             if val == -1: