[Checkins] SVN: zope.intid/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:29:23 EDT 2009


Log message for revision 97876:
  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.intid/trunk/src/zope/__init__.py

-=-
Modified: zope.intid/trunk/src/zope/__init__.py
===================================================================
--- zope.intid/trunk/src/zope/__init__.py	2009-03-11 16:29:15 UTC (rev 97875)
+++ zope.intid/trunk/src/zope/__init__.py	2009-03-11 16:29:23 UTC (rev 97876)
@@ -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__)



More information about the Checkins mailing list