changeset 31307:f8d41edd0357

init: zstd is already python3-ready, so don't run it through our importer
author Augie Fackler <raf@durin42.com>
date Wed, 08 Mar 2017 18:11:19 -0500
parents c920efa9d34b
children 62939e0148f1
files mercurial/__init__.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/__init__.py	Fri Mar 03 14:42:56 2017 -0500
+++ b/mercurial/__init__.py	Wed Mar 08 18:11:19 2017 -0500
@@ -137,6 +137,9 @@
             # Only handle Mercurial-related modules.
             if not fullname.startswith(('mercurial.', 'hgext.', 'hgext3rd.')):
                 return None
+            # zstd is already dual-version clean, don't try and mangle it
+            if fullname.startswith('mercurial.zstd'):
+                return None
 
             # This assumes Python 3 doesn't support loading C modules.
             if fullname in _dualmodules: