diff options
author | Jason Madden <jamadden@gmail.com> | 2018-03-08 07:58:58 -0600 |
---|---|---|
committer | Jason Madden <jamadden@gmail.com> | 2018-03-08 07:58:58 -0600 |
commit | 1deeb189f31819071308d89d6056020e9604b73e (patch) | |
tree | ab2971658d0e10c57c2ecfbab7d92a553f53cc3f | |
parent | 654a56c071b42404eebd562e9235c1ee07da66ea (diff) | |
download | zope-interface-issue114.tar.gz |
Synchronize and simplify zope/__init__.pyissue114
We *do* have a dependency on setuptools, so the try/except block should be unnecessary. At worst it might hide installation errors.
Fixes #114.
-rw-r--r-- | src/zope/__init__.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/zope/__init__.py b/src/zope/__init__.py index 2e2033b..de40ea7 100644 --- a/src/zope/__init__.py +++ b/src/zope/__init__.py @@ -1,7 +1 @@ -# this is a namespace package -try: - import pkg_resources - pkg_resources.declare_namespace(__name__) -except ImportError: - import pkgutil - __path__ = pkgutil.extend_path(__path__, __name__) +__import__('pkg_resources').declare_namespace(__name__) |