mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Fix a circular import dependency.
This commit is contained in:
@@ -9,8 +9,6 @@ http://www.python.org/dev/peps/pep-0205/
|
||||
# they are called this instead of "ref" to avoid name collisions with
|
||||
# the module-global ref() function imported from _weakref.
|
||||
|
||||
import collections
|
||||
|
||||
from _weakref import (
|
||||
getweakrefcount,
|
||||
getweakrefs,
|
||||
@@ -22,6 +20,8 @@ from _weakref import (
|
||||
|
||||
from _weakrefset import WeakSet
|
||||
|
||||
import collections # Import after _weakref to avoid circular import.
|
||||
|
||||
ProxyTypes = (ProxyType, CallableProxyType)
|
||||
|
||||
__all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs",
|
||||
|
||||
Reference in New Issue
Block a user