MCPcopy Create free account
hub / github.com/EasyIME/PIME / __repr__

Method __repr__

python/python3/tornado/locks.py:390–397  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

388 self._value = value
389
390 def __repr__(self) -> str:
391 res = super().__repr__()
392 extra = (
393 "locked" if self._value == 0 else "unlocked,value:{0}".format(self._value)
394 )
395 if self._waiters:
396 extra = "{0},waiters:{1}".format(extra, len(self._waiters))
397 return "<{0} [{1}]>".format(res[1:-1], extra)
398
399 def release(self) -> None:
400 """Increment the counter and wake one waiter."""

Callers

nothing calls this directly

Calls 2

__repr__Method · 0.45
formatMethod · 0.45

Tested by

no test coverage detected