Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e029242

Browse files
committed
ReferenceError is now built-in, so pick it up from the right place.
It still needs to be here to preserve the API.
1 parent 8844d52 commit e029242

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lib/weakref.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
getweakrefs, \
1717
ref, \
1818
proxy, \
19-
ReferenceError, \
2019
CallableProxyType, \
2120
ProxyType, \
2221
ReferenceType
2322

23+
from exceptions import ReferenceError
24+
25+
2426
ProxyTypes = (ProxyType, CallableProxyType)
2527

2628
__all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs",

0 commit comments

Comments
 (0)