# HG changeset patch # User Siddharth Agarwal # Date 2017-10-01 11:04:18 # Node ID 9fb9f8440b71716ce5026e498de92631de5b30a6 # Parent 41401f502c835c303a048311bfff29226f4f93f7 python3: don't byte mangle third-party packages Third-party packages are already expected to be dual-version clean. Differential Revision: https://phab.mercurial-scm.org/D871 diff --git a/mercurial/__init__.py b/mercurial/__init__.py --- a/mercurial/__init__.py +++ b/mercurial/__init__.py @@ -34,6 +34,9 @@ if sys.version_info[0] >= 3: # selectors2 is already dual-version clean, don't try and mangle it if fullname.startswith('mercurial.selectors2'): return None + # third-party packages are expected to be dual-version clean + if fullname.startswith('mercurial.thirdparty'): + return None # zstd is already dual-version clean, don't try and mangle it if fullname.startswith('mercurial.zstd'): return None