D7443: setup: use bytes for assumed python version

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Sat Nov 16 14:24:26 EST 2019


Closed by commit rHG488397449af6: setup: use bytes for assumed python version (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7443?vs=18178&id=18187

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7443/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7443

AFFECTED FILES
  setup.py

CHANGE DETAILS

diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -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:



To: mharbison72, #hg-reviewers, indygreg
Cc: mercurial-devel


More information about the Mercurial-devel mailing list