From: barate Date: Mon, 7 Feb 2011 16:25:48 +0000 (+0000) Subject: Removed deprecation warning in module deprecation (sic) X-Git-Tag: Start_BR_19998_21191~77 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=30e9a4edc07710f1dfc6a93013d848e2068509fa;p=modules%2Fkernel.git Removed deprecation warning in module deprecation (sic) --- diff --git a/src/KERNEL_PY/kernel/deprecation.py b/src/KERNEL_PY/kernel/deprecation.py index 4a7ae671d..e0e036376 100644 --- a/src/KERNEL_PY/kernel/deprecation.py +++ b/src/KERNEL_PY/kernel/deprecation.py @@ -105,8 +105,8 @@ def is_called_by_sphinx(): def __show_colored_warning(message, category, filename, - lineno, file = sys.stderr): - str = warnings.formatwarning(message, category, filename, lineno) + lineno, file = sys.stderr, line = None): + str = warnings.formatwarning(message, category, filename, lineno, line) if category == DeprecationWarning and termcolor.canDisplayColor(file): file.write(termcolor.makeColoredMessage(str, termcolor.BLUE)) else: