Skip to content
Snippets Groups Projects
Commit afc1c66b authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

sendInfo, sendWarning and sendError now send str(msg) instead of msg: this allows full

compatibility with print() - one more nice idea from Fabrice ;-)
parent 67553040
No related branches found
No related tags found
No related merge requests found
......@@ -283,19 +283,19 @@ class client :
if not self.socket :
print (msg)
return
self._send(self._GMSH_INFO, msg)
self._send(self._GMSH_INFO, str(msg))
def sendWarning(self, msg) :
if not self.socket :
print (msg)
return
self._send(self._GMSH_WARNING, msg)
self._send(self._GMSH_WARNING, str(msg))
def sendError(self, msg) :
if not self.socket :
print (msg)
return
self._send(self._GMSH_ERROR, msg)
self._send(self._GMSH_ERROR, str(msg))
def preProcess(self, filename) :
if not self.socket :
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment