summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBaiju Muthukadan <baiju.m.mail@gmail.com>2009-03-11 16:25:45 +0000
committerBaiju Muthukadan <baiju.m.mail@gmail.com>2009-03-11 16:25:45 +0000
commit79df7e65fca5515edab2316f89ce1a10f0e3647d (patch)
treefc44e09e8155261700ab31b0d7d8809161c33c18 /src
parent0ab5565dd1285651b2f345df777b69619d4af078 (diff)
downloadzope-component-79df7e65fca5515edab2316f89ce1a10f0e3647d.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')
-rw-r--r--src/zope/__init__.py8
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__)