diff --git a/contrib/onelab/python/onelab.py b/contrib/onelab/python/onelab.py index b658cf7f58fbb0d30e5f411803d36b5b7351ec9b..b4405e4d7c58adf76ce888e0883ffa945c5f865f 100755 --- a/contrib/onelab/python/onelab.py +++ b/contrib/onelab/python/onelab.py @@ -329,13 +329,14 @@ class client : self.setNumber('IsPyMetamodel',value=1,visible=0) if self.action == "initialize": exit(0) - def finalize(self) : #code aster python interpreter does not call the destructor at exit, it is necessary to call finalize() epxlicitely + def finalize(self): + # code aster python interpreter does not call the destructor at exit, it is + # necessary to call finalize() epxlicitely if self.socket : self._wait_on_subclients() self._send(self._GMSH_STOP, 'Goodbye!') self.socket.close() self.socket = None - - def __del__(self) : - finalize() + def __del__(self): + self.finalize()