use stdout in print_msg
This commit is contained in:
parent
72b4ac97d0
commit
6824179eea
@ -58,13 +58,15 @@ def set_verbosity(b):
|
|||||||
|
|
||||||
def print_error(*args):
|
def print_error(*args):
|
||||||
if not is_verbose: return
|
if not is_verbose: return
|
||||||
print_msg(*args)
|
args = [str(item) for item in args]
|
||||||
|
sys.stderr.write(" ".join(args) + "\n")
|
||||||
|
sys.stderr.flush()
|
||||||
|
|
||||||
def print_msg(*args):
|
def print_msg(*args):
|
||||||
# Stringify args
|
# Stringify args
|
||||||
args = [str(item) for item in args]
|
args = [str(item) for item in args]
|
||||||
sys.stderr.write(" ".join(args) + "\n")
|
sys.stdout.write(" ".join(args) + "\n")
|
||||||
sys.stderr.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
|
|
||||||
def user_dir():
|
def user_dir():
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user