changeset 38334:5cb39a368c80

py3: cast bytes encoding name to str in fileset.py
author Yuya Nishihara <yuya@tcha.org>
date Sat, 16 Jun 2018 16:56:38 +0900
parents c924e7dbcd0f
children 8783f128048e
files mercurial/fileset.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/fileset.py	Thu Jun 14 15:12:28 2018 -0700
+++ b/mercurial/fileset.py	Sat Jun 16 16:56:38 2018 +0900
@@ -427,7 +427,7 @@
     for f in mctx.existing():
         d = mctx.ctx[f].data()
         try:
-            d.decode(enc)
+            d.decode(pycompat.sysstr(enc))
         except LookupError:
             raise error.Abort(_("unknown encoding '%s'") % enc)
         except UnicodeDecodeError: