Loading cccli/printer.py +3 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ from cccli.exception import * color = { # regular "black": "\033[0;30m", "red": "\033[0;31m", "green": "\033[0;32m", "yellow": "\033[0;33m", Loading @@ -24,6 +25,7 @@ color = { "cyan": "\033[0;36m", "white": "\033[0;37m", # lighted "lgrey": "\033[1;30m", "lred": "\033[1;31m", "lgreen": "\033[1;32m", "lyellow": "\033[1;33m", Loading Loading @@ -95,7 +97,7 @@ class Printer(object): def debug(self, message, fd=sys.stderr, nl=os.linesep): if cccli.debug: self.out(message, fd, nl) self.out("%s%s%s"%(color["lgrey"],message,color["reset"]), fd, nl) def interactive(self, message, fd=sys.stderr, nl=os.linesep): '''Print only in interactive mode''' Loading Loading
cccli/printer.py +3 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ from cccli.exception import * color = { # regular "black": "\033[0;30m", "red": "\033[0;31m", "green": "\033[0;32m", "yellow": "\033[0;33m", Loading @@ -24,6 +25,7 @@ color = { "cyan": "\033[0;36m", "white": "\033[0;37m", # lighted "lgrey": "\033[1;30m", "lred": "\033[1;31m", "lgreen": "\033[1;32m", "lyellow": "\033[1;33m", Loading Loading @@ -95,7 +97,7 @@ class Printer(object): def debug(self, message, fd=sys.stderr, nl=os.linesep): if cccli.debug: self.out(message, fd, nl) self.out("%s%s%s"%(color["lgrey"],message,color["reset"]), fd, nl) def interactive(self, message, fd=sys.stderr, nl=os.linesep): '''Print only in interactive mode''' Loading