Patchwork D5286: py3: use pycompat.byteskwargs() to covert keys of kwargs to bytes

login
register
mail settings
Submitter phabricator
Date Nov. 20, 2018, 12:27 p.m.
Message ID <8ee26609330e8f0fe34fdbb4b4778548@localhost.localdomain>
Download mbox | patch
Permalink /patch/36666/
State Not Applicable
Headers show

Comments

phabricator - Nov. 20, 2018, 12:27 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGd6a13f6db69c: py3: use pycompat.byteskwargs() to covert keys of kwargs to bytes (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5286?vs=12562&id=12569

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

AFFECTED FILES
  hgext/fastannotate/context.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/fastannotate/context.py b/hgext/fastannotate/context.py
--- a/hgext/fastannotate/context.py
+++ b/hgext/fastannotate/context.py
@@ -156,6 +156,7 @@ 
     }
 
     def __init__(self, **opts):
+        opts = pycompat.byteskwargs(opts)
         for k, v in self.defaults.iteritems():
             setattr(self, k, opts.get(k, v))