Patchwork [11,of,11] py3: unblock C extensions on Python 3

login
register
mail settings
Submitter Yuya Nishihara
Date March 3, 2018, 1:27 p.m.
Message ID <3719af6aed86d0a444a6.1520083664@mimosa>
Download mbox | patch
Permalink /patch/28776/
State Accepted
Headers show

Comments

Yuya Nishihara - March 3, 2018, 1:27 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1520074294 18000
#      Sat Mar 03 05:51:34 2018 -0500
# Node ID 3719af6aed86d0a444a6334a977459c81072266d
# Parent  0fd4e00b52b665037a69d7204247f45447188335
py3: unblock C extensions on Python 3

Please make sure to build C extensions before running tests with -l:

  $ make local PYTHON=python3

Patch

diff --git a/mercurial/policy.py b/mercurial/policy.py
--- a/mercurial/policy.py
+++ b/mercurial/policy.py
@@ -44,11 +44,6 @@  except ImportError:
 if r'__pypy__' in sys.builtin_module_names:
     policy = b'cffi'
 
-# Our C extensions aren't yet compatible with Python 3. So use pure Python
-# on Python 3 for now.
-if sys.version_info[0] >= 3:
-    policy = b'py'
-
 # Environment variable can always force settings.
 if sys.version_info[0] >= 3:
     if r'HGMODULEPOLICY' in os.environ: