Add str() calls around messages in tty

This commit is contained in:
Todd Gamblin 2014-03-13 15:53:18 -07:00 committed by Gregory L. Lee
parent db92db1c7a
commit 47f0edcbe4

View file

@ -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):