mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #23921: Standardized documentation whitespace formatting.
Original patch by James Edwards.
This commit is contained in:
parent
387235085c
commit
dba903993a
63 changed files with 445 additions and 409 deletions
|
|
@ -71,14 +71,14 @@ Lock
|
|||
lock = Lock()
|
||||
...
|
||||
with (yield from lock):
|
||||
...
|
||||
...
|
||||
|
||||
Lock objects can be tested for locking state::
|
||||
|
||||
if not lock.locked():
|
||||
yield from lock
|
||||
yield from lock
|
||||
else:
|
||||
# lock is acquired
|
||||
# lock is acquired
|
||||
...
|
||||
|
||||
.. method:: locked()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue