# HG changeset patch # User Pulkit Goyal # Date 2018-09-04 14:58:39 # Node ID 16c27483f50fcb529aa0c444cd91e95ab0e5cfaa # Parent 5bf99c27a7b6f251987ade4033a7e2e788b65808 py3: bytestr a bytes val to make sure we get bytechr while iterating Differential Revision: https://phab.mercurial-scm.org/D4460 diff --git a/hgext/keyword.py b/hgext/keyword.py --- a/hgext/keyword.py +++ b/hgext/keyword.py @@ -567,7 +567,7 @@ def files(ui, repo, *pats, **opts): showfiles += ([f for f in files if f not in kwfiles], [f for f in status.unknown if f not in kwunknown]) kwlabels = 'enabled deleted enabledunknown ignored ignoredunknown'.split() - kwstates = zip(kwlabels, 'K!kIi', showfiles) + kwstates = zip(kwlabels, pycompat.bytestr('K!kIi'), showfiles) fm = ui.formatter('kwfiles', opts) fmt = '%.0s%s\n' if opts.get('all') or ui.verbose: