From: Christian Heimes Date: Sun, 13 Oct 2013 00:21:33 +0000 (+0200) Subject: Issue #19218: set __name__ of _collections_abc to collections.abc in order to fix... X-Git-Tag: v3.4.0a4~148 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bf235bd212d0c420c7fd78dcb1baea69c48e6552;p=thirdparty%2FPython%2Fcpython.git Issue #19218: set __name__ of _collections_abc to collections.abc in order to fix tests and keep beautiful qualified names. --- diff --git a/Lib/_collections_abc.py b/Lib/_collections_abc.py index d19e5925a0af..faa1ff22ff40 100644 --- a/Lib/_collections_abc.py +++ b/Lib/_collections_abc.py @@ -18,6 +18,12 @@ __all__ = ["Hashable", "Iterable", "Iterator", "ByteString", ] +# This module has been renamed from collections.abc to _collections_abc to +# speed up interpreter startup. Some of the types such as MutableMapping are +# required early but collections module imports a lot of other modules. +# See issue #19218 +__name__ = "collections.abc" + # Private list of types that we want to register with the various ABCs # so that they will pass tests like: # it = iter(somebytearray)