[Checkins] SVN: zope.thread/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:59 EDT 2009
    
    
  
Log message for revision 97902:
  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.thread/trunk/src/zope/__init__.py
-=-
Modified: zope.thread/trunk/src/zope/__init__.py
===================================================================
--- zope.thread/trunk/src/zope/__init__.py	2009-03-11 16:32:50 UTC (rev 97901)
+++ zope.thread/trunk/src/zope/__init__.py	2009-03-11 16:32:58 UTC (rev 97902)
@@ -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