# HG changeset patch # User Martin von Zweigbergk # Date 1499797264 25200 # Node ID 1bb209d08a34d4de623e5b7d7ccc63e84ba77232 # Parent 26e4ba058215e536d3827befbea99ff6203d35f8 py3: make localrepo filtered repo cache work on py3 I don't know if this is the right fix, but it makes test-py3-commands.t pass again. Differential Revision: https://phab.mercurial-scm.org/D56 diff -r 26e4ba058215 -r 1bb209d08a34 mercurial/localrepo.py --- a/mercurial/localrepo.py Fri Jul 07 10:04:01 2017 +0200 +++ b/mercurial/localrepo.py Tue Jul 11 11:21:04 2017 -0700 @@ -553,7 +553,7 @@ # class of this repo. Give it a name containing the # filter name to aid debugging. bases = (repoview.repoview, key) - cls = type('%sfilteredrepo' % name, bases, {}) + cls = type(r'%sfilteredrepo' % name, bases, {}) self._filteredrepotypes[key] = cls return self._filteredrepotypes[key](self, name)