filenames may be unicode, so use unicode format strings

This commit is contained in:
David Vierra 2011-11-10 03:28:50 -10:00
parent cf5b162d1d
commit e1c7020207

View File

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