Patchwork D1627: py3: handle keyword arguments correctly in color.py

login
register
mail settings
Submitter phabricator
Date Dec. 10, 2017, 1:08 a.m.
Message ID <differential-rev-PHID-DREV-glwuthrx7ih5wi3blxof-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/26144/
State Superseded
Headers show

Comments

phabricator - Dec. 10, 2017, 1:08 a.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D1627

AFFECTED FILES
  mercurial/color.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel, spectral

Patch

diff --git a/mercurial/color.py b/mercurial/color.py
--- a/mercurial/color.py
+++ b/mercurial/color.py
@@ -484,7 +484,7 @@ 
             _win32print(ui, text, writefunc, **opts)
 
     def _win32print(ui, text, writefunc, **opts):
-        label = opts.get('label', '')
+        label = opts.get(r'label', '')
         attr = origattr
 
         def mapcolor(val, attr):