summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2014-03-13 15:53:18 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2014-03-13 15:53:18 -0700
commit6058f7aac606ed292007b94cb791d528acf6a338 (patch)
tree0265eed44e4fdcea263f0b58ba39b2571b282f7c /lib
parentd905a1350ac939c70eb5f3742956d0dd0a219518 (diff)
downloadspack-6058f7aac606ed292007b94cb791d528acf6a338.tar.gz
spack-6058f7aac606ed292007b94cb791d528acf6a338.tar.bz2
spack-6058f7aac606ed292007b94cb791d528acf6a338.tar.xz
spack-6058f7aac606ed292007b94cb791d528acf6a338.zip
Add str() calls around messages in tty
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/tty.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/spack/spack/tty.py b/lib/spack/spack/tty.py
index df4760df40..b9ad3f12bf 100644
--- a/lib/spack/spack/tty.py
+++ b/lib/spack/spack/tty.py
@@ -36,27 +36,27 @@ def msg(message, *args):
def info(message, *args, **kwargs):
format = kwargs.get('format', '*b')
- cprint("@%s{==>} %s" % (format, cescape(message)))
+ cprint("@%s{==>} %s" % (format, cescape(str(message))))
for arg in args:
print indent + str(arg)
def verbose(message, *args):
if spack.verbose:
- info(message, *args, format='c')
+ info(str(message), *args, format='c')
def debug(*args):
if spack.debug:
- info("Debug: " + message, *args, format='*g')
+ info("Debug: " + str(message), *args, format='*g')
def error(message, *args):
- info("Error: " + message, *args, format='*r')
+ info("Error: " + str(message), *args, format='*r')
def warn(message, *args):
- info("Warning: " + message, *args, format='*Y')
+ info("Warning: " + str(message), *args, format='*Y')
def die(message, *args):