# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-12-09 23:20:03 # Node ID 4e377c43e80b5ac6f6d98519c25a7132137a6785 # Parent 073bc922d349b56f95d8ed5fbb2e03a3aa05d148 py3: handle keyword arguments correctly in ui.py Differential Revision: https://phab.mercurial-scm.org/D1646 diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -894,9 +894,9 @@ class ui(object): "cmdname.type" is recommended. For example, status issues a label of "status.modified" for modified files. ''' - if self._buffers and not opts.get('prompt', False): + if self._buffers and not opts.get(r'prompt', False): if self._bufferapplylabels: - label = opts.get('label', '') + label = opts.get(r'label', '') self._buffers[-1].extend(self.label(a, label) for a in args) else: self._buffers[-1].extend(args) @@ -907,7 +907,7 @@ class ui(object): else: msgs = args if self._colormode is not None: - label = opts.get('label', '') + label = opts.get(r'label', '') msgs = [self.label(a, label) for a in args] self._write(*msgs, **opts) @@ -935,7 +935,7 @@ class ui(object): else: msgs = args if self._colormode is not None: - label = opts.get('label', '') + label = opts.get(r'label', '') msgs = [self.label(a, label) for a in args] self._write_err(*msgs, **opts)