purge: apply byteskwargs to opts, fixing all python3 issues here
authorAugie Fackler <augie@google.com>
Fri, 02 Mar 2018 00:37:07 -0500
changeset 36571 5a3f8da663e5
parent 36570 4df06d2f60e1
child 36572 9adfa48792a7
purge: apply byteskwargs to opts, fixing all python3 issues here Differential Revision: https://phab.mercurial-scm.org/D2547
hgext/purge.py
--- a/hgext/purge.py	Fri Mar 02 00:19:51 2018 -0500
+++ b/hgext/purge.py	Fri Mar 02 00:37:07 2018 -0500
@@ -31,6 +31,7 @@
 from mercurial import (
     cmdutil,
     error,
+    pycompat,
     registrar,
     scmutil,
     util,
@@ -84,6 +85,7 @@
     list of files that this program would delete, use the --print
     option.
     '''
+    opts = pycompat.byteskwargs(opts)
     act = not opts.get('print')
     eol = '\n'
     if opts.get('print0'):