Patchwork [08,of,10] contrib: always treat importlib.* as stdlib

login
register
mail settings
Submitter Augie Fackler
Date Aug. 23, 2017, 2:55 p.m.
Message ID <5d6c18ca9740c5d3ded1.1503500107@imladris.local>
Download mbox | patch
Permalink /patch/23237/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 23, 2017, 2:55 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1503432177 14400
#      Tue Aug 22 16:02:57 2017 -0400
# Node ID 5d6c18ca9740c5d3ded1823a15956f90ad4efaa8
# Parent  17fdb52b44c9e97f4e66354981aeea5c3990c78c
contrib: always treat importlib.* as stdlib

Patch

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