[Zope3-checkins] CVS: Zope3/src/zope/app/services - registration.py:1.13

Fred L. Drake, Jr. fred at zope.com
Thu Aug 21 19:06:25 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv30857

Modified Files:
	registration.py 
Log Message:
conform to the (now better documented) interface: findModule() must
return None if the module doesn't exist


=== Zope3/src/zope/app/services/registration.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/services/registration.py:1.12	Thu Aug 21 17:48:52 2003
+++ Zope3/src/zope/app/services/registration.py	Thu Aug 21 18:06:24 2003
@@ -730,11 +730,7 @@
             return c.findModule(name)
 
         # Use sys.modules in lieu of module service:
-        module = sys.modules.get(name)
-        if module is not None:
-            return module
-
-        raise ImportError(name)
+        return sys.modules.get(name)
 
     findModule = zapi.ContextMethod(findModule)
 




More information about the Zope3-Checkins mailing list