This commit is contained in:
Edwin Eefting
2021-02-07 14:54:50 +01:00
parent ae64fd6e99
commit 66d284f183
3 changed files with 8 additions and 6 deletions

View File

@ -1,5 +1,9 @@
# python 2 compatibility
from __future__ import print_function
import sys
colorama = False
if sys.stdout.isatty():
try:
@ -39,4 +43,4 @@ class LogConsole:
print(colorama.Fore.GREEN + "# " + txt + colorama.Style.RESET_ALL)
else:
print("# " + txt)
sys.stdout.flush()
sys.stdout.flush()

View File

@ -1,6 +1,4 @@
#python 2 compatibility
from __future__ import print_function
def cli():