Patchwork D7443: setup: use bytes for assumed python version

login
register
mail settings
Submitter phabricator
Date Nov. 16, 2019, 7:24 p.m.
Message ID <9e7681c42752086ed9eda511cedbba6a@localhost.localdomain>
Download mbox | patch
Permalink /patch/43310/
State Not Applicable
Headers show

Comments

phabricator - Nov. 16, 2019, 7:24 p.m.
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




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

Patch

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: