Commit 0b7a2340 authored by Jérome Perrin's avatar Jérome Perrin

fixup! standalone: initial implementation

parent 12ebc5d5
...@@ -309,13 +309,7 @@ class StandaloneSlapOS(object): ...@@ -309,13 +309,7 @@ class StandaloneSlapOS(object):
def supervisor_rpc(self): def supervisor_rpc(self):
"""A xmlrpc connection to control supervisor, use as a context manager. """A xmlrpc connection to control supervisor, use as a context manager.
""" """
# XXX make getSupervisorRPC a context manager properly closing return getSupervisorRPC(self._supervisor_socket)
import contextlib
@contextlib.contextmanager
def _getSupervisorRPC():
yield getSupervisorRPC(self._supervisor_socket)
return _getSupervisorRPC()
#return getSupervisorRPC(self._supervisor_socket)
def format( def format(
self, self,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment