py3: don't try to mangle C extension blob by code transformer
authorYuya Nishihara <yuya@tcha.org>
Sat, 03 Mar 2018 05:50:45 -0500
changeset 36617 5246f940a48e
parent 36616 a007db19dc4d
child 36618 9a639a33ad1f
py3: don't try to mangle C extension blob by code transformer
mercurial/__init__.py
--- 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