diff options
author | Baiju Muthukadan <baiju.m.mail@gmail.com> | 2009-03-11 16:31:00 +0000 |
---|---|---|
committer | Baiju Muthukadan <baiju.m.mail@gmail.com> | 2009-03-11 16:31:00 +0000 |
commit | 8ed67d91b61d91c3171e5d5f80492ef435a1772f (patch) | |
tree | 95ddcb330a7dce62f1c067707cdbacefccce90dc | |
parent | d49d367b2d65889c63e7a82fe9710598764e6702 (diff) | |
download | zope-security-8ed67d91b61d91c3171e5d5f80492ef435a1772f.tar.gz |
As 'setuptools' is a dependency 'pkg_resources' will be available always. Ref: http://mail.zope.org/pipermail/zope-dev/2009-March/035277.html
-rw-r--r-- | src/zope/__init__.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/zope/__init__.py b/src/zope/__init__.py index bf99a9d..de40ea7 100644 --- a/src/zope/__init__.py +++ b/src/zope/__init__.py @@ -1,8 +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__) |