diff options
Diffstat (limited to 'spice_codegen.py')
-rwxr-xr-x | spice_codegen.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spice_codegen.py b/spice_codegen.py index 16ad478..84790af 100755 --- a/spice_codegen.py +++ b/spice_codegen.py @@ -265,10 +265,10 @@ if options.keep_identical_file: pass f = open(dest_file, 'wb') -if six.PY2: - f.write(content) -else: +if six.PY3: f.write(bytes(content, 'UTF-8')) +else: + f.write(content) f.close() six.print_("Wrote %s" % dest_file) |