# HG changeset patch # User Matt Harbison # Date 1573922927 18000 # Node ID 6a5dc4d767a02eb1d4893d4ae121bc40355ee4ca # Parent 666441b649e4b9f3bf4b557e1212b81c5fdfac85 setup: use bytes for assumed python version Caught by PyOxidizer when hacking on Windows. # skip-blame for b'' prefixing Differential Revision: https://phab.mercurial-scm.org/D7443 diff -r 666441b649e4 -r 6a5dc4d767a0 setup.py --- a/setup.py Sat Nov 16 11:42:27 2019 -0500 +++ b/setup.py Sat Nov 16 11:48:47 2019 -0500 @@ -742,7 +742,7 @@ ) hv = sys.hexversion - pythonlib = 'python%d%d' % (hv >> 24, (hv >> 16) & 0xFF) + pythonlib = b'python%d%d' % (hv >> 24, (hv >> 16) & 0xFF) log.info('using %s as Python library name' % pythonlib) with open('mercurial/hgpythonlib.h', 'wb') as f: