Commit 6e9823f1 authored by Sébastien Luttringer's avatar Sébastien Luttringer
Browse files

Printer.out display nothing if message is None

parent b7d9b425
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -64,6 +64,8 @@ def out(message="", fd=sys.stdout, endl=os.linesep, flush=True):
    '''
    Print message colorised in fd ended by endl
    '''
    if message is None:
        return
    # color subsitution
    color_pattern = "#(%s)#" % "|".join(COLOR)
    if not fd.isatty() or NOCOLOR: