[Checkins] SVN: zope.documenttemplate/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:08 EDT 2009


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

-=-
Modified: zope.documenttemplate/trunk/src/zope/__init__.py
===================================================================
--- zope.documenttemplate/trunk/src/zope/__init__.py	2009-03-11 16:26:59 UTC (rev 97860)
+++ zope.documenttemplate/trunk/src/zope/__init__.py	2009-03-11 16:27:07 UTC (rev 97861)
@@ -1,10 +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