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

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Tue Nov 20 07:27:00 EST 2018


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

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))
 



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


More information about the Mercurial-devel mailing list