diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-07-07 13:49:40 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2014-07-07 13:49:40 +0000 |
commit | cc9f777e1e3599d51ebb53137a49709212f9e1d9 (patch) | |
tree | d727d5957e1f084229b6a24ca3b6c2ef2e0eacfc /morphlib | |
parent | 770a6cb434ac31238eb2eee526e235728ce07aff (diff) | |
download | morph-cc9f777e1e3599d51ebb53137a49709212f9e1d9.tar.gz |
Don't try to decode metadata when buildingbaserock/adamcoldrick/metadata-fix
GCC sometimes creates paths containing unicode characters which the json
dumper cannot handle. This commit stops it from trying to handle them.
Diffstat (limited to 'morphlib')
-rw-r--r-- | morphlib/builder2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/morphlib/builder2.py b/morphlib/builder2.py index 3c0d9e02..dbfed48d 100644 --- a/morphlib/builder2.py +++ b/morphlib/builder2.py @@ -294,7 +294,7 @@ class BuilderBase(object): # Unit tests use StringIO, which in Python 2.6 isn't usable with # the "with" statement. So we don't do it with "with". f = self._open(filename, 'w') - f.write(json.dumps(meta, indent=4, sort_keys=True)) + f.write(json.dumps(meta, indent=4, sort_keys=True, ensure_ascii=False)) f.close() def new_artifact(self, artifact_name): |