Mercurial > public > mercurial-scm > hg-stable
diff mercurial/scmutil.py @ 50942:b3174be5e7f7
localrepo: purge filecache attribute using there unicode name
This could be better, but that's a good step.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 30 Aug 2023 01:23:30 +0200 |
parents | 17a86f650059 |
children | d718eddf01d9 |
line wrap: on
line diff
--- a/mercurial/scmutil.py Thu Aug 31 01:21:57 2023 +0200 +++ b/mercurial/scmutil.py Wed Aug 30 01:23:30 2023 +0200 @@ -1692,6 +1692,10 @@ def __call__(self, func): self.func = func self.sname = func.__name__ + # XXX We should be using a unicode string instead of bytes for the main + # name (and the _filecache key). The fact we use bytes is a remains + # from Python2, since the name is derived from an attribute name a + # `str` is a better fit now that we support Python3 only self.name = pycompat.sysbytes(self.sname) return self