Skip to content

Commit 349917d

Browse files
committed
-
1 parent 20ad363 commit 349917d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

source_py3/python_toolbox/context_management/abstract_context_manager.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414

1515
class AbstractContextManager(metaclass=abc.ABCMeta):
1616
'''
17-
blocktodo: add tests
17+
A no-frills context manager.
18+
19+
This class is used mostly to check whether an object is a context manager:
20+
21+
>>> isinstance(threading.Lock(), AbstractContextManager)
22+
True
23+
1824
'''
1925
@abc.abstractmethod
2026
def __enter__(self):

0 commit comments

Comments
 (0)