[Checkins] SVN: zope.exceptions/trunk/src/zope/__init__.py As 'setuptools' is a dependency 'pkg_resources' will be available always. Ref: http://mail.zope.org/pipermail/zope-dev/2009-March/035277.html
Baiju M
baiju.m.mail at gmail.com
Wed Mar 11 12:27:53 EDT 2009
Log message for revision 97866:
As 'setuptools' is a dependency 'pkg_resources' will be available always. Ref: http://mail.zope.org/pipermail/zope-dev/2009-March/035277.html
Changed:
U zope.exceptions/trunk/src/zope/__init__.py
-=-
Modified: zope.exceptions/trunk/src/zope/__init__.py
===================================================================
--- zope.exceptions/trunk/src/zope/__init__.py 2009-03-11 16:27:39 UTC (rev 97865)
+++ zope.exceptions/trunk/src/zope/__init__.py 2009-03-11 16:27:47 UTC (rev 97866)
@@ -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__)
More information about the Checkins
mailing list