[Checkins] SVN: zope.z2release/trunk/zope/__init__.py Avoid some boilerplate

Hanno Schlichting hannosch at hannosch.eu
Sun Jun 13 13:30:26 EDT 2010


Log message for revision 113422:
  Avoid some boilerplate
  

Changed:
  U   zope.z2release/trunk/zope/__init__.py

-=-
Modified: zope.z2release/trunk/zope/__init__.py
===================================================================
--- zope.z2release/trunk/zope/__init__.py	2010-06-13 16:46:33 UTC (rev 113421)
+++ zope.z2release/trunk/zope/__init__.py	2010-06-13 17:30:26 UTC (rev 113422)
@@ -1,6 +1 @@
-# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
-try:
-    __import__('pkg_resources').declare_namespace(__name__)
-except ImportError:
-    from pkgutil import extend_path
-    __path__ = extend_path(__path__, __name__)
+__import__('pkg_resources').declare_namespace(__name__)



More information about the checkins mailing list