summaryrefslogtreecommitdiff
path: root/src/zope/__init__.py
diff options
context:
space:
mode:
authorBaiju Muthukadan <baiju.m.mail@gmail.com>2009-03-11 16:31:00 +0000
committerBaiju Muthukadan <baiju.m.mail@gmail.com>2009-03-11 16:31:00 +0000
commit8ed67d91b61d91c3171e5d5f80492ef435a1772f (patch)
tree95ddcb330a7dce62f1c067707cdbacefccce90dc /src/zope/__init__.py
parentd49d367b2d65889c63e7a82fe9710598764e6702 (diff)
downloadzope-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
Diffstat (limited to 'src/zope/__init__.py')
-rw-r--r--src/zope/__init__.py9
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__)