Commit 663fffa4 authored by Brett Cannon's avatar Brett Cannon

Fix a circular import dependency.

parent 52dc06b2
...@@ -9,8 +9,6 @@ http://www.python.org/dev/peps/pep-0205/ ...@@ -9,8 +9,6 @@ http://www.python.org/dev/peps/pep-0205/
# they are called this instead of "ref" to avoid name collisions with # they are called this instead of "ref" to avoid name collisions with
# the module-global ref() function imported from _weakref. # the module-global ref() function imported from _weakref.
import collections
from _weakref import ( from _weakref import (
getweakrefcount, getweakrefcount,
getweakrefs, getweakrefs,
...@@ -22,6 +20,8 @@ from _weakref import ( ...@@ -22,6 +20,8 @@ from _weakref import (
from _weakrefset import WeakSet from _weakrefset import WeakSet
import collections # Import after _weakref to avoid circular import.
ProxyTypes = (ProxyType, CallableProxyType) ProxyTypes = (ProxyType, CallableProxyType)
__all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs", __all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment