Mercurial > public > mercurial-scm > hg
diff mercurial/__init__.py @ 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 | 414114a7c18f |
children | fb9121ea38c4 |
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