changeset 36600:5a3f8da663e5

purge: apply byteskwargs to opts, fixing all python3 issues here Differential Revision: https://phab.mercurial-scm.org/D2547
author Augie Fackler <augie@google.com>
date Fri, 02 Mar 2018 00:37:07 -0500
parents 4df06d2f60e1
children 9adfa48792a7
files hgext/purge.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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'):