[PATCH 01 of 11] py3: don't try to mangle C extension blob by code transformer
Yuya Nishihara
yuya at tcha.org
Sat Mar 3 13:27:34 UTC 2018
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1520074245 18000
# Sat Mar 03 05:50:45 2018 -0500
# Node ID 39f26de931737db2ee20b90925f7b3eb56423a89
# Parent cdf5ea49828ae71c8340b2806733ce49b4a549da
py3: don't try to mangle C extension blob by code transformer
diff --git a/mercurial/__init__.py b/mercurial/__init__.py
--- a/mercurial/__init__.py
+++ b/mercurial/__init__.py
@@ -31,6 +31,9 @@ if sys.version_info[0] >= 3:
# Only handle Mercurial-related modules.
if not fullname.startswith(('mercurial.', 'hgext.', 'hgext3rd.')):
return None
+ # don't try to parse binary
+ if fullname.startswith('mercurial.cext.'):
+ return None
# third-party packages are expected to be dual-version clean
if fullname.startswith('mercurial.thirdparty'):
return None
More information about the Mercurial-devel
mailing list