diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-04-24 06:05:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-24 06:05:00 (GMT) |
commit | 2e576f5aec1f8f23f07001e2eb3db9276851a4fc (patch) | |
tree | 0c42af143f2ab71bce5865aa72056330fcc510db /Lib/weakref.py | |
parent | 9eb5ca0774f94215be48442100c829db2484e146 (diff) | |
download | cpython-2e576f5aec1f8f23f07001e2eb3db9276851a4fc.zip cpython-2e576f5aec1f8f23f07001e2eb3db9276851a4fc.tar.gz cpython-2e576f5aec1f8f23f07001e2eb3db9276851a4fc.tar.bz2 |
bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263)
Diffstat (limited to 'Lib/weakref.py')
-rw-r--r-- | Lib/weakref.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/weakref.py b/Lib/weakref.py index 787e33a..1802f32 100644 --- a/Lib/weakref.py +++ b/Lib/weakref.py @@ -21,7 +21,7 @@ from _weakref import ( from _weakrefset import WeakSet, _IterationGuard -import collections # Import after _weakref to avoid circular import. +import collections.abc # Import after _weakref to avoid circular import. import sys import itertools @@ -87,7 +87,7 @@ class WeakMethod(ref): __hash__ = ref.__hash__ -class WeakValueDictionary(collections.MutableMapping): +class WeakValueDictionary(collections.abc.MutableMapping): """Mapping class that references values weakly. Entries in the dictionary will be discarded when no strong @@ -340,7 +340,7 @@ class KeyedRef(ref): super().__init__(ob, callback) -class WeakKeyDictionary(collections.MutableMapping): +class WeakKeyDictionary(collections.abc.MutableMapping): """ Mapping class that references keys weakly. Entries in the dictionary will be discarded when there is no |