Mercurial > hg
changeset 24668:81873bb2a01d
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
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 08 Apr 2015 22:23:51 -0400 |
parents | 19c5b0913960 |
children | fbdbff1b486a |
files | contrib/import-checker.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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: