From e1c70202076892c30fa4a7c0fea5e15ff41d3ef3 Mon Sep 17 00:00:00 2001 From: David Vierra Date: Thu, 10 Nov 2011 03:28:50 -1000 Subject: [PATCH] filenames may be unicode, so use unicode format strings --- materials.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/materials.py b/materials.py index 801d3d8..63ed665 100644 --- a/materials.py +++ b/materials.py @@ -158,9 +158,9 @@ class MCMaterials(object): + [os.path.join(f, filename) for f in moduleDirs]) for f in [fn for fn in filenames if os.path.exists(fn)]: - info(" Looking in %s", f) + info(u" Looking in %s", f) try: - info("Loading block info from %s", f) + info(u"Loading block info from %s", f) blockyaml = yaml.load(open(f)) self.addYamlBlocks(blockyaml)