]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Removed deprecation warning in module deprecation (sic)
authorbarate <barate>
Mon, 7 Feb 2011 16:25:48 +0000 (16:25 +0000)
committerbarate <barate>
Mon, 7 Feb 2011 16:25:48 +0000 (16:25 +0000)
src/KERNEL_PY/kernel/deprecation.py

index 4a7ae671d9537e7a218051e7809e1362f77a8cb0..e0e036376b2f4031d664c81ecfffd60caf8254b6 100644 (file)
@@ -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: