diff options
author | Richard Oudkerk <shibturn@gmail.com> | 2013-05-05 22:05:00 (GMT) |
---|---|---|
committer | Richard Oudkerk <shibturn@gmail.com> | 2013-05-05 22:05:00 (GMT) |
commit | 7a3dae056d8022a8308b5aa8ac026b0436d66eb5 (patch) | |
tree | bc43894244c466d335d2d7967ccd78d9d63a428c /Lib/collections | |
parent | 8408cea0cdc0ccd5900acd99a9a51dd9161ae319 (diff) | |
download | cpython-7a3dae056d8022a8308b5aa8ac026b0436d66eb5.zip cpython-7a3dae056d8022a8308b5aa8ac026b0436d66eb5.tar.gz cpython-7a3dae056d8022a8308b5aa8ac026b0436d66eb5.tar.bz2 |
Issue #15528: Add weakref.finalize to support finalization using
weakref callbacks.
This is 2e446e87ac5b except that collections/__init__.py has been
modified to import proxy from _weakref instead of weakref. This
eliminates an import cycle which seems to cause a problem on Unix but
not Windows.
Diffstat (limited to 'Lib/collections')
-rw-r--r-- | Lib/collections/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/collections/__init__.py b/Lib/collections/__init__.py index e7441d2..9453320 100644 --- a/Lib/collections/__init__.py +++ b/Lib/collections/__init__.py @@ -12,7 +12,7 @@ from operator import itemgetter as _itemgetter, eq as _eq from keyword import iskeyword as _iskeyword import sys as _sys import heapq as _heapq -from weakref import proxy as _proxy +from _weakref import proxy as _proxy from itertools import repeat as _repeat, chain as _chain, starmap as _starmap from reprlib import recursive_repr as _recursive_repr |