Commit f258944b authored by Georg Schölly's avatar Georg Schölly

fix __exit__ method of client and server class

parent 4f113090
...@@ -102,7 +102,7 @@ class Client(object): ...@@ -102,7 +102,7 @@ class Client(object):
self.connect() self.connect()
return self return self
def __exit__(self): def __exit__(self, exc_type, exc_value, traceback):
self.disconnect() self.disconnect()
@staticmethod @staticmethod
......
...@@ -94,7 +94,7 @@ class Server(object): ...@@ -94,7 +94,7 @@ class Server(object):
self.start() self.start()
return self return self
def __exit__(self): def __exit__(self, exc_type, exc_value, traceback):
self.stop() self.stop()
def load_certificate(self, path): def load_certificate(self, path):
......
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