From dd7bb6316edda1c8aa3b4b11e0cb111a18e1167d Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Sun, 26 May 2013 09:30:05 +0000
Subject: [PATCH] finalize -> self.finalize

---
 contrib/onelab/python/onelab.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/contrib/onelab/python/onelab.py b/contrib/onelab/python/onelab.py
index b658cf7f58..b4405e4d7c 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()
-- 
GitLab