changeset 43676:6a5dc4d767a0

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
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 16 Nov 2019 11:48:47 -0500
parents 666441b649e4
children 52e4bfebc4ba
files setup.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: