[Checkins] SVN: zope.structuredtext/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:32:05 EDT 2009


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

-=-
Modified: zope.structuredtext/trunk/src/zope/__init__.py
===================================================================
--- zope.structuredtext/trunk/src/zope/__init__.py	2009-03-11 16:31:56 UTC (rev 97895)
+++ zope.structuredtext/trunk/src/zope/__init__.py	2009-03-11 16:32:05 UTC (rev 97896)
@@ -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