From cfe29168e903c342c9d7b6e34903d51cf9478a99 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 18 Apr 2016 19:41:51 +0200 Subject: [PATCH] [misc] autopep8 --- prosopopee/utils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/prosopopee/utils.py b/prosopopee/utils.py index 7f2adc8..98e4722 100644 --- a/prosopopee/utils.py +++ b/prosopopee/utils.py @@ -7,6 +7,7 @@ class bcolors: FAIL = '\033[91m' ENDC = '\033[0m' + def error(test, error_message): if test: return @@ -15,10 +16,12 @@ def error(test, error_message): sys.stderr.write("\n") sys.exit(1) + def warning(logging, warning_message): - sys.stderr.write( "%s%s : %s%s" % (bcolors.WARNING, logging, bcolors.ENDC, warning_message)) + sys.stderr.write("%s%s : %s%s" % (bcolors.WARNING, logging, bcolors.ENDC, warning_message)) sys.stderr.write("\n") + def okgreen(logging, ok_message): - sys.stderr.write( "%s%s : %s%s" % (bcolors.OKGREEN, logging, bcolors.ENDC, ok_message)) + sys.stderr.write("%s%s : %s%s" % (bcolors.OKGREEN, logging, bcolors.ENDC, ok_message)) sys.stderr.write("\n")