diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
index d73ccc63b8f9802f105f24d5c55275b23fd0200e_bWVyY3VyaWFsL2xvY2FscmVwby5weQ==..9ce4e01f58ee04d754c9d0dc6887492d2ce37c15_bWVyY3VyaWFsL2xvY2FscmVwby5weQ== 100644
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -688,11 +688,10 @@
         key = self.unfiltered().__class__
         if key not in self._filteredrepotypes:
             # Build a new type with the repoview mixin and the base
-            # class of this repo. Give it a name containing the
-            # filter name to aid debugging.
-            bases = (repoview.repoview, key)
-            cls = type(r'%sfilteredrepo' % name, bases, {})
-            self._filteredrepotypes[key] = cls
+            # class of this repo.
+            class filteredrepo(repoview.repoview, key):
+                pass
+            self._filteredrepotypes[key] = filteredrepo
 
         return self._filteredrepotypes[key](self, name)