# HG changeset patch # User Matt Harbison # Date 2024-12-07 08:11:02 # Node ID 3c68099412801e6adb8fb76df0a442c4ece1d897 # Parent c1674551c109c18c5d4680af19877c7d29703ea7 interfaces: drop the conditional import of the vendored `zope` packages The real `zope` code was only used when enabled by a test, and the decorators turned into no-ops at runtime. Now that the test is disabled, unconditionally use the no-op decorators and stop importing the code. This module can go away once the `mercurial.interfaces.repository` interfaces are converted to Protocol classes, but the vendored code can be deleted in the meantime. diff --git a/mercurial/interfaces/util.py b/mercurial/interfaces/util.py --- a/mercurial/interfaces/util.py +++ b/mercurial/interfaces/util.py @@ -11,15 +11,7 @@ from __future__ import annotations -from .. import encoding - -if encoding.environ.get(b'HGREALINTERFACES'): - from ..thirdparty.zope import interface as zi - - Attribute = zi.Attribute - Interface = zi.Interface - implementer = zi.implementer -else: +if True: class Attribute: def __init__(self, __name__, __doc__=b''):