purge: apply byteskwargs to opts, fixing all python3 issues here
Differential Revision: https://phab.mercurial-scm.org/D2547
--- 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'):