py3: fix setup.py --version stable
authorDenis Laxalde <denis.laxalde@logilab.fr>
Fri, 11 Oct 2019 16:51:13 +0200
branchstable
changeset 4900 155e986045eb
parent 4899 c982e7fb5e7a
child 4901 ce163aaeba37
py3: fix setup.py --version Before: $ python3 setup.py --version b'9.3.0.dev' After: $ python3 setup.py --version 9.3.0.dev
setup.py
--- a/setup.py	Wed Oct 16 18:12:53 2019 +0200
+++ b/setup.py	Fri Oct 11 16:51:13 2019 +0200
@@ -13,7 +13,7 @@
 
 def get_version():
     '''Read version info from a file without importing it'''
-    return u'%s' % get_metadata()['__version__']
+    return get_metadata()['__version__'].decode()
 
 def min_hg_version():
     '''Read version info from a file without importing it'''