Patchwork [05,of,10] contrib: inform import checker that __builtin__ is a thing

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

Comments

Augie Fackler - Aug. 23, 2017, 2:55 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1503425557 14400
#      Tue Aug 22 14:12:37 2017 -0400
# Node ID ab897b232da53bc7b198027103de5e521f6e8e29
# Parent  d8042acd416ee5c0daeea12d6e4c2595a5667919
contrib: inform import checker that __builtin__ is a thing

Patch

diff --git a/contrib/import-checker.py b/contrib/import-checker.py
--- a/contrib/import-checker.py
+++ b/contrib/import-checker.py
@@ -220,6 +220,7 @@  def list_stdlib_modules():
     # consider them stdlib.
     for m in ['msvcrt', '_winreg']:
         yield m
+    yield '__builtin__'
     yield 'builtins' # python3 only
     for m in 'fcntl', 'grp', 'pwd', 'termios':  # Unix only
         yield m