From 4df6f5afcc4f5b5183ebb2e7af12eb2d7c243238 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 5 Oct 2014 20:40:04 +0200 Subject: [PATCH] make setup.py work with python3.2 --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 02ac44c..0104ab7 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ def get_version(): rev = int(f.read().split()[0]) f.close() if rev: - version = u"2.3.%s"%rev + version = "2.3.%d" % rev with open(__version, 'w') as fd: fd.write('VERSION="%s"'%version) return version @@ -34,8 +34,8 @@ def get_version(): f.close() rev = re.compile('\d+\.\d+\.(\d+)').findall(head) if rev: - return u'2.3.%s'%rev[0] - return u'2.3.x' + return '2.3.%s' % rev[0] + return '2.3.x' setup( name="ox",