[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py Small optimization

Dmitry Vasiliev dima at hlabs.spb.ru
Wed May 19 08:20:38 EDT 2004


Log message for revision 24823:
Small optimization



-=-
Modified: Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py	2004-05-19 12:15:44 UTC (rev 24822)
+++ Zope3/trunk/src/zope/app/apidoc/classmodule/__init__.py	2004-05-19 12:20:38 UTC (rev 24823)
@@ -624,9 +624,7 @@
 classRegistry = ClassRegistry()
 
 def cleanUp():
-    global classRegistry
-    for key in classRegistry.keys():
-        classRegistry.__delitem__(key)
+    classRegistry.clear()
 
 from zope.testing.cleanup import addCleanUp
 addCleanUp(cleanUp)




More information about the Zope3-Checkins mailing list