p2 fix
This commit is contained in:
@ -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()
|
||||
|
||||
@ -1,6 +1,4 @@
|
||||
|
||||
#python 2 compatibility
|
||||
from __future__ import print_function
|
||||
|
||||
|
||||
def cli():
|
||||
|
||||
Reference in New Issue
Block a user