From: Luca Falavigna Date: Tue, 11 Jan 2011 13:38:15 +0000 (+0000) Subject: Avoid converting unicode strings into yaml nodes X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=bd2582991842aa6c77c6ccfa3923a810d4d00725;p=dak.git Avoid converting unicode strings into yaml nodes Signed-off-by: Luca Falavigna --- diff --git a/dak/override_disparity.py b/dak/override_disparity.py index fd3bc503..b0218517 100755 --- a/dak/override_disparity.py +++ b/dak/override_disparity.py @@ -128,13 +128,13 @@ def main(): if not out.has_key(d): out[d] = {} out[d]['priority'] = priorities[d][1] - out[d]['maintainer'] = priorities[d][2] + out[d]['maintainer'] = unicode(priorities[d][2], 'utf-8') out[d]['priority'] = priorities[d][1] priorities[d][3] = False if not out[d].has_key('dependency'): out[d]['dependency'] = {} out[d]['dependency'][p] = priorities[p][1] - yaml.dump(out, outfile, default_flow_style=False) + yaml.safe_dump(out, outfile, default_flow_style=False) if Options.has_key('file'): outfile.close()