[Zope-Checkins]
SVN: Zope/branches/2.10/lib/python/Products/ZCatalog/__init__.py
More robust.
Florent Guillaume
fg at nuxeo.com
Thu Jun 1 07:56:04 EDT 2006
Log message for revision 68434:
More robust.
Changed:
U Zope/branches/2.10/lib/python/Products/ZCatalog/__init__.py
-=-
Modified: Zope/branches/2.10/lib/python/Products/ZCatalog/__init__.py
===================================================================
--- Zope/branches/2.10/lib/python/Products/ZCatalog/__init__.py 2006-06-01 11:53:33 UTC (rev 68433)
+++ Zope/branches/2.10/lib/python/Products/ZCatalog/__init__.py 2006-06-01 11:56:03 UTC (rev 68434)
@@ -23,7 +23,10 @@
from ZClasses import createZClassForBase
finally:
del warnings.filters[-1]
- del __warningregistry__
+ try:
+ del __warningregistry__
+ except NameError:
+ pass
createZClassForBase( ZCatalog.ZCatalog , globals()
, 'ZCatalogBase', 'ZCatalog' )
More information about the Zope-Checkins
mailing list