From 50fd89806f685ab4be84721a1d8f37184f625739 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Fri, 9 Sep 2016 13:30:54 -0700 Subject: [PATCH] Issue #24320: Drop an old setuptools-induced hack. --- Lib/importlib/_bootstrap_external.py | 5 -- Python/importlib_external.h | 105 +++++++++++++-------------- 2 files changed, 52 insertions(+), 58 deletions(-) diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py index 4340c3b84dd..9a7e6ec9379 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -1440,8 +1440,3 @@ def _install(_bootstrap_module): if _os.__name__ == 'nt': sys.meta_path.append(WindowsRegistryFinder) sys.meta_path.append(PathFinder) - - # XXX We expose a couple of classes in _bootstrap for the sake of - # a setuptools bug (https://bitbucket.org/pypa/setuptools/issue/378). - _bootstrap_module.FileFinder = FileFinder - _bootstrap_module.SourceFileLoader = SourceFileLoader diff --git a/Python/importlib_external.h b/Python/importlib_external.h index f2bcb287d68..3fcd0394f3f 100644 --- a/Python/importlib_external.h +++ b/Python/importlib_external.h @@ -2380,61 +2380,60 @@ const unsigned char _Py_M__importlib_external[] = { 18,3,2,1,14,1,16,2,10,1,12,3,10,1,12,3, 10,1,10,1,12,3,14,1,14,1,10,1,10,1,10,1, 114,32,1,0,0,99,1,0,0,0,0,0,0,0,2,0, - 0,0,3,0,0,0,67,0,0,0,115,86,0,0,0,116, + 0,0,3,0,0,0,67,0,0,0,115,74,0,0,0,116, 0,124,0,131,1,1,0,116,1,131,0,125,1,116,2,106, 3,106,4,116,5,106,6,124,1,152,1,142,0,103,1,131, 1,1,0,116,7,106,8,100,1,107,2,114,58,116,2,106, 9,106,10,116,11,131,1,1,0,116,2,106,9,106,10,116, - 12,131,1,1,0,116,5,124,0,95,5,116,13,124,0,95, - 13,100,2,83,0,41,3,122,41,73,110,115,116,97,108,108, - 32,116,104,101,32,112,97,116,104,45,98,97,115,101,100,32, - 105,109,112,111,114,116,32,99,111,109,112,111,110,101,110,116, - 115,46,114,27,1,0,0,78,41,14,114,32,1,0,0,114, - 159,0,0,0,114,8,0,0,0,114,253,0,0,0,114,147, - 0,0,0,114,5,1,0,0,114,18,1,0,0,114,3,0, - 0,0,114,109,0,0,0,218,9,109,101,116,97,95,112,97, - 116,104,114,161,0,0,0,114,166,0,0,0,114,248,0,0, - 0,114,215,0,0,0,41,2,114,31,1,0,0,90,17,115, - 117,112,112,111,114,116,101,100,95,108,111,97,100,101,114,115, - 114,4,0,0,0,114,4,0,0,0,114,6,0,0,0,218, - 8,95,105,110,115,116,97,108,108,155,5,0,0,115,16,0, - 0,0,0,2,8,1,6,1,22,1,10,1,12,1,12,4, - 6,1,114,34,1,0,0,41,1,122,3,119,105,110,41,2, - 114,1,0,0,0,114,2,0,0,0,41,1,114,49,0,0, - 0,41,1,78,41,3,78,78,78,41,3,78,78,78,41,2, - 114,62,0,0,0,114,62,0,0,0,41,1,78,41,1,78, - 41,58,114,111,0,0,0,114,12,0,0,0,90,37,95,67, - 65,83,69,95,73,78,83,69,78,83,73,84,73,86,69,95, - 80,76,65,84,70,79,82,77,83,95,66,89,84,69,83,95, - 75,69,89,114,11,0,0,0,114,13,0,0,0,114,19,0, - 0,0,114,21,0,0,0,114,30,0,0,0,114,40,0,0, - 0,114,41,0,0,0,114,45,0,0,0,114,46,0,0,0, - 114,48,0,0,0,114,58,0,0,0,218,4,116,121,112,101, - 218,8,95,95,99,111,100,101,95,95,114,142,0,0,0,114, - 17,0,0,0,114,132,0,0,0,114,16,0,0,0,114,20, - 0,0,0,90,17,95,82,65,87,95,77,65,71,73,67,95, - 78,85,77,66,69,82,114,77,0,0,0,114,76,0,0,0, - 114,88,0,0,0,114,78,0,0,0,90,23,68,69,66,85, - 71,95,66,89,84,69,67,79,68,69,95,83,85,70,70,73, - 88,69,83,90,27,79,80,84,73,77,73,90,69,68,95,66, - 89,84,69,67,79,68,69,95,83,85,70,70,73,88,69,83, - 114,83,0,0,0,114,89,0,0,0,114,95,0,0,0,114, - 99,0,0,0,114,101,0,0,0,114,120,0,0,0,114,127, - 0,0,0,114,139,0,0,0,114,145,0,0,0,114,148,0, - 0,0,114,153,0,0,0,218,6,111,98,106,101,99,116,114, - 160,0,0,0,114,165,0,0,0,114,166,0,0,0,114,181, - 0,0,0,114,191,0,0,0,114,207,0,0,0,114,215,0, - 0,0,114,220,0,0,0,114,226,0,0,0,114,221,0,0, - 0,114,227,0,0,0,114,246,0,0,0,114,248,0,0,0, - 114,5,1,0,0,114,23,1,0,0,114,159,0,0,0,114, - 32,1,0,0,114,34,1,0,0,114,4,0,0,0,114,4, - 0,0,0,114,4,0,0,0,114,6,0,0,0,218,8,60, - 109,111,100,117,108,101,62,8,0,0,0,115,108,0,0,0, - 4,16,4,1,4,1,2,1,6,3,8,17,8,5,8,5, - 8,6,8,12,8,10,8,9,8,5,8,7,10,22,10,120, - 16,1,12,2,4,1,4,2,6,2,6,2,8,2,16,45, - 8,34,8,19,8,12,8,12,8,28,8,17,10,55,10,12, - 10,10,8,14,6,3,4,1,14,67,14,64,14,29,16,110, - 14,41,18,45,18,16,4,3,18,53,14,60,14,42,14,127, - 0,5,14,127,0,22,10,23,8,11,8,68, + 12,131,1,1,0,100,2,83,0,41,3,122,41,73,110,115, + 116,97,108,108,32,116,104,101,32,112,97,116,104,45,98,97, + 115,101,100,32,105,109,112,111,114,116,32,99,111,109,112,111, + 110,101,110,116,115,46,114,27,1,0,0,78,41,13,114,32, + 1,0,0,114,159,0,0,0,114,8,0,0,0,114,253,0, + 0,0,114,147,0,0,0,114,5,1,0,0,114,18,1,0, + 0,114,3,0,0,0,114,109,0,0,0,218,9,109,101,116, + 97,95,112,97,116,104,114,161,0,0,0,114,166,0,0,0, + 114,248,0,0,0,41,2,114,31,1,0,0,90,17,115,117, + 112,112,111,114,116,101,100,95,108,111,97,100,101,114,115,114, + 4,0,0,0,114,4,0,0,0,114,6,0,0,0,218,8, + 95,105,110,115,116,97,108,108,155,5,0,0,115,12,0,0, + 0,0,2,8,1,6,1,22,1,10,1,12,1,114,34,1, + 0,0,41,1,122,3,119,105,110,41,2,114,1,0,0,0, + 114,2,0,0,0,41,1,114,49,0,0,0,41,1,78,41, + 3,78,78,78,41,3,78,78,78,41,2,114,62,0,0,0, + 114,62,0,0,0,41,1,78,41,1,78,41,58,114,111,0, + 0,0,114,12,0,0,0,90,37,95,67,65,83,69,95,73, + 78,83,69,78,83,73,84,73,86,69,95,80,76,65,84,70, + 79,82,77,83,95,66,89,84,69,83,95,75,69,89,114,11, + 0,0,0,114,13,0,0,0,114,19,0,0,0,114,21,0, + 0,0,114,30,0,0,0,114,40,0,0,0,114,41,0,0, + 0,114,45,0,0,0,114,46,0,0,0,114,48,0,0,0, + 114,58,0,0,0,218,4,116,121,112,101,218,8,95,95,99, + 111,100,101,95,95,114,142,0,0,0,114,17,0,0,0,114, + 132,0,0,0,114,16,0,0,0,114,20,0,0,0,90,17, + 95,82,65,87,95,77,65,71,73,67,95,78,85,77,66,69, + 82,114,77,0,0,0,114,76,0,0,0,114,88,0,0,0, + 114,78,0,0,0,90,23,68,69,66,85,71,95,66,89,84, + 69,67,79,68,69,95,83,85,70,70,73,88,69,83,90,27, + 79,80,84,73,77,73,90,69,68,95,66,89,84,69,67,79, + 68,69,95,83,85,70,70,73,88,69,83,114,83,0,0,0, + 114,89,0,0,0,114,95,0,0,0,114,99,0,0,0,114, + 101,0,0,0,114,120,0,0,0,114,127,0,0,0,114,139, + 0,0,0,114,145,0,0,0,114,148,0,0,0,114,153,0, + 0,0,218,6,111,98,106,101,99,116,114,160,0,0,0,114, + 165,0,0,0,114,166,0,0,0,114,181,0,0,0,114,191, + 0,0,0,114,207,0,0,0,114,215,0,0,0,114,220,0, + 0,0,114,226,0,0,0,114,221,0,0,0,114,227,0,0, + 0,114,246,0,0,0,114,248,0,0,0,114,5,1,0,0, + 114,23,1,0,0,114,159,0,0,0,114,32,1,0,0,114, + 34,1,0,0,114,4,0,0,0,114,4,0,0,0,114,4, + 0,0,0,114,6,0,0,0,218,8,60,109,111,100,117,108, + 101,62,8,0,0,0,115,108,0,0,0,4,16,4,1,4, + 1,2,1,6,3,8,17,8,5,8,5,8,6,8,12,8, + 10,8,9,8,5,8,7,10,22,10,120,16,1,12,2,4, + 1,4,2,6,2,6,2,8,2,16,45,8,34,8,19,8, + 12,8,12,8,28,8,17,10,55,10,12,10,10,8,14,6, + 3,4,1,14,67,14,64,14,29,16,110,14,41,18,45,18, + 16,4,3,18,53,14,60,14,42,14,127,0,5,14,127,0, + 22,10,23,8,11,8,68, };