changeset 52075:ff4562ed9ed7

localrepo: drop the CamelCase name for `localrepo.localcommandexecutor` See 61557734c0ae for the reasoning.
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 23 Oct 2024 16:51:18 -0400
parents 33f255bf19d9
children 66579606f677
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Wed Oct 23 16:48:46 2024 -0400
+++ b/mercurial/localrepo.py	Wed Oct 23 16:51:18 2024 -0400
@@ -260,7 +260,7 @@
 legacycaps = moderncaps.union({b'changegroupsubset'})
 
 
-class LocalCommandExecutor:
+class localcommandexecutor:  # (repository.ipeercommandexecutor)
     def __init__(self, peer):
         self._peer = peer
         self._sent = False
@@ -305,15 +305,6 @@
         self._closed = True
 
 
-localcommandexecutor = interfaceutil.implementer(
-    repository.ipeercommandexecutor
-)(LocalCommandExecutor)
-
-if typing.TYPE_CHECKING:
-    # Help pytype by hiding the interface stuff that confuses it.
-    localcommandexecutor = LocalCommandExecutor
-
-
 class LocalPeer(repository.peer):
     '''peer for a local repo; reflects only the most recent API'''