changeset 36617:5246f940a48e

py3: don't try to mangle C extension blob by code transformer
author Yuya Nishihara <yuya@tcha.org>
date Sat, 03 Mar 2018 05:50:45 -0500
parents a007db19dc4d
children 9a639a33ad1f
files mercurial/__init__.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/__init__.py	Fri Mar 02 18:47:27 2018 -0500
+++ b/mercurial/__init__.py	Sat Mar 03 05:50:45 2018 -0500
@@ -31,6 +31,9 @@
             # 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