Add str() calls around messages in tty
This commit is contained in:
parent
db92db1c7a
commit
47f0edcbe4
1 changed files with 5 additions and 5 deletions
|
@ -36,27 +36,27 @@ def msg(message, *args):
|
||||||
|
|
||||||
def info(message, *args, **kwargs):
|
def info(message, *args, **kwargs):
|
||||||
format = kwargs.get('format', '*b')
|
format = kwargs.get('format', '*b')
|
||||||
cprint("@%s{==>} %s" % (format, cescape(message)))
|
cprint("@%s{==>} %s" % (format, cescape(str(message))))
|
||||||
for arg in args:
|
for arg in args:
|
||||||
print indent + str(arg)
|
print indent + str(arg)
|
||||||
|
|
||||||
|
|
||||||
def verbose(message, *args):
|
def verbose(message, *args):
|
||||||
if spack.verbose:
|
if spack.verbose:
|
||||||
info(message, *args, format='c')
|
info(str(message), *args, format='c')
|
||||||
|
|
||||||
|
|
||||||
def debug(*args):
|
def debug(*args):
|
||||||
if spack.debug:
|
if spack.debug:
|
||||||
info("Debug: " + message, *args, format='*g')
|
info("Debug: " + str(message), *args, format='*g')
|
||||||
|
|
||||||
|
|
||||||
def error(message, *args):
|
def error(message, *args):
|
||||||
info("Error: " + message, *args, format='*r')
|
info("Error: " + str(message), *args, format='*r')
|
||||||
|
|
||||||
|
|
||||||
def warn(message, *args):
|
def warn(message, *args):
|
||||||
info("Warning: " + message, *args, format='*Y')
|
info("Warning: " + str(message), *args, format='*Y')
|
||||||
|
|
||||||
|
|
||||||
def die(message, *args):
|
def die(message, *args):
|
||||||
|
|
Loading…
Reference in a new issue