setup: use bytes for assumed python version
authorMatt Harbison <matt_harbison@yahoo.com>
Sat, 16 Nov 2019 11:48:47 -0500
changeset 43676 6a5dc4d767a0
parent 43675 666441b649e4
child 43678 52e4bfebc4ba
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
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: