summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2014-03-13 15:53:18 -0700
committerGregory L. Lee <lee218@llnl.gov>2014-03-14 08:42:08 -0700
commit47f0edcbe4dd4902e679d4f1e384be1795c3d465 (patch)
treed50946f0a73a653660481e50aff2918dbe3bdc58
parentdb92db1c7a6802eeb7dcf21f4164e3b4cef73a25 (diff)
downloadspack-47f0edcbe4dd4902e679d4f1e384be1795c3d465.tar.gz
spack-47f0edcbe4dd4902e679d4f1e384be1795c3d465.tar.bz2
spack-47f0edcbe4dd4902e679d4f1e384be1795c3d465.tar.xz
spack-47f0edcbe4dd4902e679d4f1e384be1795c3d465.zip
Add str() calls around messages in tty
-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):