add (currently unused) abort command

This commit is contained in:
Damien Elmes 2016-12-25 12:54:47 +10:00
parent 4fbe091c3b
commit 03b2ad37d9

View File

@ -658,6 +658,9 @@ class RemoteServer(HttpSyncer):
def finish(self, **kw):
return self._run("finish", kw)
def abort(self, **kw):
return self._run("abort", kw)
def _run(self, cmd, data):
return json.loads(
self.req(cmd, io.BytesIO(json.dumps(data).encode("utf8"))).decode("utf8"))