# HG changeset patch # User Matt Harbison # Date 1428546231 14400 # Node ID 81873bb2a01d0b746171a7e7c07667009f501d9e # Parent 19c5b091396036e2ee63555b39a5852652b49d18 import-checker: allow *.pyd based stdlib modules These are Windows dlls, and eliminate the following import check diffs that are not on Unix: mercurial/changegroup.py mixed imports stdlib: os, struct, tempfile, zlib relative: bz2 mercurial/encoding.py mixed imports stdlib: locale, os relative: unicodedata diff -r 19c5b0913960 -r 81873bb2a01d contrib/import-checker.py --- a/contrib/import-checker.py Tue Apr 07 22:35:44 2015 -0700 +++ b/contrib/import-checker.py Wed Apr 08 22:23:51 2015 -0400 @@ -90,7 +90,8 @@ for name in files: if name == '__init__.py': continue - if not (name.endswith('.py') or name.endswith('.so')): + if not (name.endswith('.py') or name.endswith('.so') + or name.endswith('.pyd')): continue full_path = os.path.join(top, name) if 'site-packages' in full_path: