diff --git a/hgext/purge.py b/hgext/purge.py --- a/hgext/purge.py +++ b/hgext/purge.py @@ -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'):