From 687b1fe7273f7e3c651af943a02b7906740be243 Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Mon, 5 Sep 2016 10:33:08 +0200 Subject: [PATCH] fix a bug of warning caused by paramiko in CentOS 6 --- salomeTools.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/salomeTools.py b/salomeTools.py index 55a5a5c..02f1dab 100755 --- a/salomeTools.py +++ b/salomeTools.py @@ -22,6 +22,7 @@ # python imports import os import sys +import tempfile import imp import types import gettext @@ -143,7 +144,11 @@ class Sat(object): # Exception for the jobs command that requires the paramiko module if nameCmd == "jobs": try: + saveout = sys.stderr + ff = tempfile.TemporaryFile() + sys.stderr = ff import paramiko + sys.stderr = saveout except: continue -- 2.39.2