[Supervisor-checkins] r851 - supervisor/trunk/src/supervisor

Mike Naberezny mike at maintainable.com
Fri May 22 12:26:51 EDT 2009


Author: Mike Naberezny <mike at maintainable.com>
Date: Fri May 22 12:26:51 2009
New Revision: 851

Log:
Move import to the top of the file.

Modified:
   supervisor/trunk/src/supervisor/rpcinterface.py

Modified: supervisor/trunk/src/supervisor/rpcinterface.py
==============================================================================
--- supervisor/trunk/src/supervisor/rpcinterface.py	(original)
+++ supervisor/trunk/src/supervisor/rpcinterface.py	Fri May 22 12:26:51 2009
@@ -25,6 +25,9 @@
 from supervisor.options import make_namespec
 from supervisor.options import split_namespec
 
+from supervisor.events import notify
+from supervisor.events import RemoteCommunicationEvent
+
 from supervisor.http import NOT_DONE_YET
 from supervisor.xmlrpc import Faults
 from supervisor.xmlrpc import RPCError
@@ -771,11 +774,10 @@
         if isinstance(data, unicode):
             data = data.encode('utf-8')
 
-        import events
-        events.notify(
-            events.RemoteCommunicationEvent(type, data)
+        notify(
+            RemoteCommunicationEvent(type, data)
         )
-        
+
         return True
 
 def make_allfunc(processes, predicate, func, **extra_kwargs):


More information about the Supervisor-checkins mailing list