[Zope3-checkins] CVS: Zope3/src/zope/app/services - service.py:1.6

Steve Alexander steve@cat-box.net
Wed, 8 Jan 2003 12:47:59 -0500


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

Modified Files:
	service.py 
Log Message:
made whitespace more regular.


=== Zope3/src/zope/app/services/service.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/services/service.py:1.5	Wed Jan  8 12:41:49 2003
+++ Zope3/src/zope/app/services/service.py	Wed Jan  8 12:47:56 2003
@@ -49,7 +49,6 @@
 from zope.app.interfaces.services.service import IServiceManager
 from zope.app.interfaces.services.service import IServiceManagerContainer
 
-
 ModuleType = type(INameResolver)
 ModuleType = ModuleType, PersistentModule
 
@@ -251,9 +250,9 @@
         else:
             repeat = 0
 
-        names=name.split('.')
-        last=names[-1]
-        mod='.'.join(names[:-1])
+        names = name.split('.')
+        last = names[-1]
+        mod = '.'.join(names[:-1])
 
         if not mod:
             return wrapped_self.__import(name)
@@ -261,7 +260,7 @@
         while 1:
             m = wrapped_self.__import(mod)
             try:
-                a=getattr(m, last)
+                a = getattr(m, last)
             except AttributeError:
                 if not repeat:
                     return wrapped_self.__import(name)
@@ -271,6 +270,7 @@
                     return a
             mod += '.' + last
     resolve = ContextMethod(resolve)
+
 
 class ServiceConfiguration(NamedComponentConfiguration):