# HG changeset patch # User Denis Laxalde # Date 1570805473 -7200 # Node ID 155e986045eb786c20f5541200e89d8a71e25d17 # Parent c982e7fb5e7a16c1be6a1eb8dbf0323ea19d6cbc py3: fix setup.py --version Before: $ python3 setup.py --version b'9.3.0.dev' After: $ python3 setup.py --version 9.3.0.dev diff -r c982e7fb5e7a -r 155e986045eb 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'''