Pārlūkot izejas kodu

Import VERSION from supervisor.options

Mike Naberezny 12 gadi atpakaļ
vecāks
revīzija
38ee522067
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      supervisor/rpcinterface.py

+ 2 - 2
supervisor/rpcinterface.py

@@ -10,6 +10,7 @@ from supervisor.options import NotFound
 from supervisor.options import NoPermission
 from supervisor.options import NoPermission
 from supervisor.options import make_namespec
 from supervisor.options import make_namespec
 from supervisor.options import split_namespec
 from supervisor.options import split_namespec
+from supervisor.options import VERSION
 
 
 from supervisor.events import notify
 from supervisor.events import notify
 from supervisor.events import RemoteCommunicationEvent
 from supervisor.events import RemoteCommunicationEvent
@@ -53,8 +54,7 @@ class SupervisorNamespaceRPCInterface:
         @return string version version id
         @return string version version id
         """
         """
         self._update('getSupervisorVersion')
         self._update('getSupervisorVersion')
-        import options
-        return options.VERSION
+        return VERSION
 
 
     def getIdentification(self):
     def getIdentification(self):
         """ Return identifiying string of supervisord
         """ Return identifiying string of supervisord