diff options
| author | Paul Varner <fuzzyray@gentoo.org> | 2013-01-03 20:31:04 -0600 |
|---|---|---|
| committer | Paul Varner <fuzzyray@gentoo.org> | 2013-01-03 20:31:04 -0600 |
| commit | 377dae69453689db43aa122b2a2c0cab762846bb (patch) | |
| tree | 34561849a27487a130e0562140ce0854a3a5c78b /setup.py | |
| parent | 0ae5906ca169bf575ed39f55acd83f91709efdfd (diff) | |
| download | gentoolkit-377dae69453689db43aa122b2a2c0cab762846bb.tar.gz | |
Fix unicode error when printing unicode strings in set_version.
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -80,7 +80,7 @@ class set_version(core.Command): newline = re.sub(pattern %f[1], '"%s"' % ver, line, 1) if newline != line: #log.info("%s: %s" % (f, newline)) - print("%s: %s" % (f[0], newline.strip('\n'))) + print("%s: %s" % (f[0], newline.encode('utf_8').strip('\n'))) updated_file.append(newline) with io.open(f[0], 'w', 1, 'utf_8') as s: s.writelines(updated_file) |
