X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FKERNEL_PY%2Fkernel%2Ftermcolor.py;h=33476f74759dee09220726fa210bada02f72c666;hb=dac5e4d5c8f771e0cedb7caa5292bc54be5ca89a;hp=3d1f8c49538897bffa6ed7497ffc71ad4a8f038d;hpb=f9bbb3f2b8eca6494fe6ffb1d71d012969352e8a;p=modules%2Fkernel.git diff --git a/src/KERNEL_PY/kernel/termcolor.py b/src/KERNEL_PY/kernel/termcolor.py index 3d1f8c495..33476f747 100644 --- a/src/KERNEL_PY/kernel/termcolor.py +++ b/src/KERNEL_PY/kernel/termcolor.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -225,13 +225,13 @@ def TEST_termcolor(): """Test function for termcolor module.""" import sys if not canDisplayColor(sys.stdout): - print "Standard output does not support colors." + print("Standard output does not support colors.") return - print makeColoredMessage("This message must appear in blue.", BLUE) - print makeColoredMessage("This message must appear in red on green " + - "background.", RED + GREEN_BG) - print makeColoredMessage("This message must appear in magenta and " + - "crossed-out.", PURPLE + ['09']) + print(makeColoredMessage("This message must appear in blue.", BLUE)) + print(makeColoredMessage("This message must appear in red on green " + + "background.", RED + GREEN_BG)) + print(makeColoredMessage("This message must appear in magenta and " + + "crossed-out.", PURPLE + ['09'])) # Main function only used to test the module