mercurial/localrepo.py
changeset 52077 36be02a749e0
parent 52076 66579606f677
child 52078 eb4f902819d8
--- a/mercurial/localrepo.py	Wed Oct 23 16:59:43 2024 -0400
+++ b/mercurial/localrepo.py	Wed Oct 23 17:01:35 2024 -0400
@@ -459,12 +459,12 @@
     # End of peer interface.
 
 
-class LocalLegacyPeer(localpeer):
+class locallegacypeer(localpeer):  # (repository.ipeerlegacycommands)
     """peer extension which implements legacy methods too; used for tests with
     restricted capabilities"""
 
     def __init__(self, repo, path=None, remotehidden=False):
-        super(LocalLegacyPeer, self).__init__(
+        super(locallegacypeer, self).__init__(
             repo, caps=legacycaps, path=path, remotehidden=remotehidden
         )
 
@@ -491,14 +491,6 @@
     # End of baselegacywirecommands interface.
 
 
-locallegacypeer = interfaceutil.implementer(repository.ipeerlegacycommands)(
-    LocalLegacyPeer
-)
-
-if typing.TYPE_CHECKING:
-    # Help pytype by hiding the interface stuff that confuses it.
-    locallegacypeer = LocalLegacyPeer
-
 # Functions receiving (ui, features) that extensions can register to impact
 # the ability to load repositories with custom requirements. Only
 # functions defined in loaded extensions are called.