summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorPaul Varner <fuzzyray@gentoo.org>2013-01-03 20:31:04 -0600
committerPaul Varner <fuzzyray@gentoo.org>2013-01-03 20:31:04 -0600
commit377dae69453689db43aa122b2a2c0cab762846bb (patch)
tree34561849a27487a130e0562140ce0854a3a5c78b /setup.py
parent0ae5906ca169bf575ed39f55acd83f91709efdfd (diff)
downloadgentoolkit-377dae69453689db43aa122b2a2c0cab762846bb.tar.gz
Fix unicode error when printing unicode strings in set_version.
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index fab0326..b4ec763 100755
--- a/setup.py
+++ b/setup.py
@@ -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)