mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Moved WeakSet into a bootstap module use by abc.py.
This makes it possible to use ABCs in weakref.py (which will be done in a later checkin).
This commit is contained in:
parent
2add352c43
commit
93fa608626
3 changed files with 115 additions and 107 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
"""Abstract Base Classes (ABCs) according to PEP 3119."""
|
||||
|
||||
from weakref import WeakSet
|
||||
from _weakrefset import WeakSet
|
||||
|
||||
def abstractmethod(funcobj):
|
||||
"""A decorator indicating abstract methods.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue