From patchwork Wed Aug 23 14:55:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [08,of,10] contrib: always treat importlib.* as stdlib From: Augie Fackler X-Patchwork-Id: 23237 Message-Id: <5d6c18ca9740c5d3ded1.1503500107@imladris.local> To: mercurial-devel@mercurial-scm.org Date: Wed, 23 Aug 2017 10:55:07 -0400 # HG changeset patch # User Augie Fackler # Date 1503432177 14400 # Tue Aug 22 16:02:57 2017 -0400 # Node ID 5d6c18ca9740c5d3ded1823a15956f90ad4efaa8 # Parent 17fdb52b44c9e97f4e66354981aeea5c3990c78c contrib: always treat importlib.* as stdlib diff --git a/contrib/import-checker.py b/contrib/import-checker.py --- a/contrib/import-checker.py +++ b/contrib/import-checker.py @@ -222,6 +222,9 @@ def list_stdlib_modules(): yield m yield '__builtin__' yield 'builtins' # python3 only + yield 'importlib.abc' # python3 only + yield 'importlib.machinery' # python3 only + yield 'importlib.util' # python3 only for m in 'fcntl', 'grp', 'pwd', 'termios': # Unix only yield m for m in 'cPickle', 'datetime': # in Python (not C) on PyPy