@@ -354,7 +354,7 @@ called in the locked state; it changes the state to unlocked and returns
354354immediately. If an attempt is made to release an unlocked lock, a
355355:exc: `RuntimeError ` will be raised.
356356
357- Locks also support the :ref: `context manager protocol <with-locks >`.
357+ Locks also support the :ref: `context management protocol <with-locks >`.
358358
359359When more than one thread is blocked in :meth: `~Lock.acquire ` waiting for the
360360state to turn to unlocked, only one thread proceeds when a :meth: `~Lock.release `
@@ -433,7 +433,7 @@ call pairs may be nested; only the final :meth:`~Lock.release` (the
433433:meth: `~Lock.release ` of the outermost pair) resets the lock to unlocked and
434434allows another thread blocked in :meth: `~Lock.acquire ` to proceed.
435435
436- Reentrant locks also support the :ref: `context manager protocol <with-locks >`.
436+ Reentrant locks also support the :ref: `context management protocol <with-locks >`.
437437
438438
439439.. class :: RLock()
@@ -501,7 +501,7 @@ passed in or one will be created by default. Passing one in is useful when
501501several condition variables must share the same lock. The lock is part of
502502the condition object: you don't have to track it separately.
503503
504- A condition variable obeys the :ref: `context manager protocol <with-locks >`:
504+ A condition variable obeys the :ref: `context management protocol <with-locks >`:
505505using the ``with `` statement acquires the associated lock for the duration of
506506the enclosed block. The :meth: `~Condition.acquire ` and
507507:meth: `~Condition.release ` methods also call the corresponding methods of
@@ -677,7 +677,7 @@ call. The counter can never go below zero; when :meth:`~Semaphore.acquire`
677677finds that it is zero, it blocks, waiting until some other thread calls
678678:meth: `~Semaphore.release `.
679679
680- Semaphores also support the :ref: `context manager protocol <with-locks >`.
680+ Semaphores also support the :ref: `context management protocol <with-locks >`.
681681
682682
683683.. class :: Semaphore(value=1)
0 commit comments