summaryrefslogtreecommitdiffstats
path: root/Lib/weakref.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-10-05 21:54:09 (GMT)
committerFred Drake <fdrake@acm.org>2001-10-05 21:54:09 (GMT)
commite029242d5cfb8a3879bdc7324db4449e6a8451cf (patch)
tree639b7932a2af4edef6dc3cc2f993ff7724e7e471 /Lib/weakref.py
parent8844d5264f450a4721f2ca9d9d8ba7f048fb784b (diff)
downloadcpython-e029242d5cfb8a3879bdc7324db4449e6a8451cf.zip
cpython-e029242d5cfb8a3879bdc7324db4449e6a8451cf.tar.gz
cpython-e029242d5cfb8a3879bdc7324db4449e6a8451cf.tar.bz2
ReferenceError is now built-in, so pick it up from the right place.
It still needs to be here to preserve the API.
Diffstat (limited to 'Lib/weakref.py')
-rw-r--r--Lib/weakref.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/weakref.py b/Lib/weakref.py
index 0cf6bf9..39ec330 100644
--- a/Lib/weakref.py
+++ b/Lib/weakref.py
@@ -16,11 +16,13 @@ from _weakref import \
getweakrefs, \
ref, \
proxy, \
- ReferenceError, \
CallableProxyType, \
ProxyType, \
ReferenceType
+from exceptions import ReferenceError
+
+
ProxyTypes = (ProxyType, CallableProxyType)
__all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs",