# HG changeset patch # User Augie Fackler # Date 1489014679 18000 # Node ID f8d41edd0357425ca1bc1627ff3e3e605943efb0 # Parent c920efa9d34b353a51afd75a2ff173fa411004e2 init: zstd is already python3-ready, so don't run it through our importer diff -r c920efa9d34b -r f8d41edd0357 mercurial/__init__.py --- 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: