changeset 35375:dce761558329

py3: handle keyword arguments correctly in patch.py Differential Revision: https://phab.mercurial-scm.org/D1639
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 10 Dec 2017 04:48:00 +0530
parents 7354fda50e8b
children 6eee2bcc57c4
files mercurial/patch.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/patch.py	Sun Dec 10 04:47:49 2017 +0530
+++ b/mercurial/patch.py	Sun Dec 10 04:48:00 2017 +0530
@@ -2466,8 +2466,8 @@
 def difflabel(func, *args, **kw):
     '''yields 2-tuples of (output, label) based on the output of func()'''
     inlinecolor = False
-    if kw.get('opts'):
-        inlinecolor = kw['opts'].worddiff
+    if kw.get(r'opts'):
+        inlinecolor = kw[r'opts'].worddiff
     headprefixes = [('diff', 'diff.diffline'),
                     ('copy', 'diff.extended'),
                     ('rename', 'diff.extended'),