|
@@ -44,7 +44,7 @@ def supports_color():
|
|
return "Yes"
|
|
return "Yes"
|
|
|
|
|
|
def log(string, color):
|
|
def log(string, color):
|
|
- if not supports_color():
|
|
|
|
|
|
+ if supports_color() == "No":
|
|
print(string)
|
|
print(string)
|
|
else:
|
|
else:
|
|
print('\033[1m' + colors(color) + string + colors("ENDC"))
|
|
print('\033[1m' + colors(color) + string + colors("ENDC"))
|
|
@@ -57,7 +57,7 @@ def log(string, color):
|
|
pass
|
|
pass
|
|
|
|
|
|
def seperator(color):
|
|
def seperator(color):
|
|
- if not supports_color():
|
|
|
|
|
|
+ if supports_color() == "No":
|
|
print(sep)
|
|
print(sep)
|
|
else:
|
|
else:
|
|
print('\033[1m' + colors(color) + (sep) + colors("ENDC"))
|
|
print('\033[1m' + colors(color) + (sep) + colors("ENDC"))
|