summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-10-13 00:21:33 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-10-13 00:21:33 (GMT)
commitbf235bd212d0c420c7fd78dcb1baea69c48e6552 (patch)
treeadd9f6017a99c8a5305699d46738b894e7183e28 /Lib
parent52c5e57dbcbc875ef74f58a3e12b45f0821fdf9c (diff)
downloadcpython-bf235bd212d0c420c7fd78dcb1baea69c48e6552.zip
cpython-bf235bd212d0c420c7fd78dcb1baea69c48e6552.tar.gz
cpython-bf235bd212d0c420c7fd78dcb1baea69c48e6552.tar.bz2
Issue #19218: set __name__ of _collections_abc to collections.abc in order to fix tests and keep beautiful qualified names.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/_collections_abc.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/_collections_abc.py b/Lib/_collections_abc.py
index d19e592..faa1ff2 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)