[CalendarServer-changes] [12000] CalendarServer/trunk/twisted/plugins/masterchild.py

source_changes at macosforge.org source_changes at macosforge.org
Wed Mar 12 11:16:48 PDT 2014


Revision: 12000
          http://trac.calendarserver.org//changeset/12000
Author:   wsanchez at apple.com
Date:     2013-11-22 18:21:00 -0800 (Fri, 22 Nov 2013)
Log Message:
-----------
cosmetic

Modified Paths:
--------------
    CalendarServer/trunk/twisted/plugins/masterchild.py

Modified: CalendarServer/trunk/twisted/plugins/masterchild.py
===================================================================
--- CalendarServer/trunk/twisted/plugins/masterchild.py	2013-11-23 02:20:35 UTC (rev 11999)
+++ CalendarServer/trunk/twisted/plugins/masterchild.py	2013-11-23 02:21:00 UTC (rev 12000)
@@ -15,9 +15,11 @@
 ##
 
 from zope.interface import implementer
-from twisted.python import reflect
+
+from twisted.python.reflect import namedClass
 from twisted.plugin import IPlugin
 from twisted.application.service import IServiceMaker
+
 from twext.application.masterchild import MasterOptions, ChildOptions
 
 
@@ -33,7 +35,7 @@
 
     def makeService(self, options):
         if self._serviceMaker is None:
-            self._serviceMaker = reflect.namedClass(self.serviceMakerClass)()
+            self._serviceMaker = namedClass(self.serviceMakerClass)()
 
         return self._serviceMaker.makeService(options)
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/1e388466/attachment.html>


More information about the calendarserver-changes mailing list