Submitter | phabricator |
---|---|
Date | Aug. 4, 2021, 8:42 p.m. |
Message ID | <differential-rev-PHID-DREV-lttx2ixqodblqeel4onq-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/49563/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/contrib/import-checker.py b/contrib/import-checker.py --- a/contrib/import-checker.py +++ b/contrib/import-checker.py @@ -278,6 +278,8 @@ ): continue for top, dirs, files in os.walk(libpath): + if 'dist-packages' in top.split(os.path.sep): + continue for i, d in reversed(list(enumerate(dirs))): if ( not os.path.exists(os.path.join(top, d, '__init__.py'))