[Checkins] SVN: zope.location/trunk/src/zope/__init__.py The try, except statement in __init__.py was chaged.

Alexander Heavner alex at zope.com
Tue Feb 13 16:08:10 EST 2007


Log message for revision 72554:
  The try, except statement in __init__.py was chaged.
  

Changed:
  U   zope.location/trunk/src/zope/__init__.py

-=-
Modified: zope.location/trunk/src/zope/__init__.py
===================================================================
--- zope.location/trunk/src/zope/__init__.py	2007-02-13 21:07:08 UTC (rev 72553)
+++ zope.location/trunk/src/zope/__init__.py	2007-02-13 21:08:09 UTC (rev 72554)
@@ -1,7 +1,8 @@
-# namespace package boilerplate
+# this is a namespace package
 try:
-    __import__('pkg_resources').declare_namespace(__name__)
-except ImportError, e:
-    from pkgutil import extend_path
-    __path__ = extend_path(__path__, __name__)
+    import pkg_resources
+    pkg_resources.declare_namespace(__name__)
+except ImportError:
+    import pkgutil
+    __path__ = pkgutil.extend_path(__path__, __name__)
 



More information about the Checkins mailing list