From 5404f98d90410d69a744d9c0fb71a8a31f3a4a88 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 24 Mar 2016 21:29:30 -0400 Subject: Clean up the core directory. mailman/core/errors.py is gone now. We had a duplicate base exception which now always comes from mailman/interfaces/errors.py. Obsolete/unused exceptions are remove. The other exceptions are moved to better locations. --- src/mailman/core/api.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/mailman/core/api.py') diff --git a/src/mailman/core/api.py b/src/mailman/core/api.py index 39c108db2..b7841a9d8 100644 --- a/src/mailman/core/api.py +++ b/src/mailman/core/api.py @@ -17,19 +17,15 @@ """REST web service API contexts.""" -__all__ = [ - 'API30', - 'API31', - ] - - from lazr.config import as_boolean +from mailman import public from mailman.config import config from mailman.interfaces.api import IAPI from uuid import UUID from zope.interface import implementer +@public @implementer(IAPI) class API30: version = '3.0' @@ -58,6 +54,7 @@ class API30: return UUID(int=int(uuid)) +@public @implementer(IAPI) class API31: version = '3.1' -- cgit v1.2.3-70-g09d2