MCPcopy
hub / github.com/tornadoweb/tornado / __repr__

Method __repr__

tornado/locks.py:202–206  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200 self._waiters = set() # type: Set[Future[None]]
201
202 def __repr__(self) -> str:
203 return "<{} {}>".format(
204 self.__class__.__name__,
205 "set" if self.is_set() else "clear",
206 )
207
208 def is_set(self) -> bool:
209 """Return ``True`` if the internal flag is true."""

Callers

nothing calls this directly

Calls 2

is_setMethod · 0.95
formatMethod · 0.80

Tested by

no test coverage detected