[Checkins] SVN: z3c.blobfile/trunk/src/z3c/__init__.py - thanks to Philip I learned that I just shouldn't make the import pkg_resources optional

Grégoire Weber zope.org at incept.ch
Sat Nov 10 09:17:45 EST 2007


Log message for revision 81713:
  - thanks to Philip I learned that I just shouldn't make the import pkg_resources optional

Changed:
  U   z3c.blobfile/trunk/src/z3c/__init__.py

-=-
Modified: z3c.blobfile/trunk/src/z3c/__init__.py
===================================================================
--- z3c.blobfile/trunk/src/z3c/__init__.py	2007-11-10 14:11:18 UTC (rev 81712)
+++ z3c.blobfile/trunk/src/z3c/__init__.py	2007-11-10 14:17:45 UTC (rev 81713)
@@ -1 +1,19 @@
-# makes this a package
+##############################################################################
+#
+# Copyright (c) 2007 Zope Foundation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""
+$Id$
+"""
+# Declare this a namespace package if pkg_resources is available.
+import pkg_resources
+pkg_resources.declare_namespace('z3c')



More information about the Checkins mailing list