summaryrefslogtreecommitdiff
path: root/src/zope/interface/exceptions.py
diff options
context:
space:
mode:
authorJason Madden <jamadden@gmail.com>2020-02-05 08:12:53 -0600
committerJason Madden <jamadden@gmail.com>2020-02-05 08:12:53 -0600
commitc4805da768863207b5dd182b3c0dd2aacc7be92f (patch)
tree33dcf9e36c451acfef2a6c0dcfb22280c32c24d0 /src/zope/interface/exceptions.py
parent79be400cc9a5a8525db9e7869e401aede3d01d72 (diff)
downloadzope-interface-issue153.tar.gz
Add __all__ to all modules.issue153
Fixes #153 The items that went in each ``__all__`` are based on what is documented: $ rg --no-filename 'import' docs/ -trst | tr -s "[:blank:]" | sort | uniq | grep zope >>> from pprint import pprint >>> from zope.interface import * >>> from zope.interface import Interface >>> from zope.interface import Interface, Attribute, implementer >>> from zope.interface import alsoProvides >>> from zope.interface import classImplements >>> from zope.interface import classImplementsOnly >>> from zope.interface import directlyProvidedBy >>> from zope.interface import directlyProvides >>> from zope.interface import implementedBy >>> from zope.interface import implementer >>> from zope.interface import implementer_only >>> from zope.interface import noLongerProvides >>> from zope.interface import providedBy >>> from zope.interface import provider >>> from zope.interface.adapter import AdapterRegistry >>> from zope.interface.declarations import Declaration >>> from zope.interface.declarations import InstanceDeclarations >>> from zope.interface.declarations import ProvidesClass >>> from zope.interface.declarations import named >>> from zope.interface.exceptions import BrokenImplementation >>> from zope.interface.exceptions import Invalid >>> from zope.interface.interface import Specification >>> from zope.interface.interface import adapter_hooks >>> from zope.interface.verify import verifyObject >>> import gc >>> import zope.interface And also some personal judgement about what the public API is that I'm more than happy to have reviewed.
Diffstat (limited to 'src/zope/interface/exceptions.py')
-rw-r--r--src/zope/interface/exceptions.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/zope/interface/exceptions.py b/src/zope/interface/exceptions.py
index e9a4788..9be1b8c 100644
--- a/src/zope/interface/exceptions.py
+++ b/src/zope/interface/exceptions.py
@@ -14,6 +14,17 @@
"""Interface-specific exceptions
"""
+__all__ = [
+ # Invalid tree
+ 'Invalid',
+ 'DoesNotImplement',
+ 'BrokenImplementation',
+ 'BrokenMethodImplementation',
+ # Other
+ 'BadImplements',
+ 'InvalidInterface',
+]
+
class Invalid(Exception):
"""A specification is violated
"""