[Checkins] SVN: zope.security/trunk/src/zope/__init__.py Changed the try, catch statement

Alexander Heavner alex at zope.com
Wed Feb 14 16:07:06 EST 2007


Log message for revision 72581:
  Changed the try, catch statement
  

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

-=-
Modified: zope.security/trunk/src/zope/__init__.py
===================================================================
--- zope.security/trunk/src/zope/__init__.py	2007-02-14 21:06:00 UTC (rev 72580)
+++ zope.security/trunk/src/zope/__init__.py	2007-02-14 21:07:05 UTC (rev 72581)
@@ -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