Skip to content

Commit edc0c89

Browse files
luzpazambv
authored andcommitted
[3.10] pythongh-93675: Fix typos in Doc/ (pythonGH-93676)
Closes pythonGH-93675 (cherry picked from commit 8305137) Co-authored-by: luzpaz <[email protected]>
1 parent 46d0e1c commit edc0c89

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/library/signal.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ To illustrate this issue, consider the following code::
703703
def __enter__(self):
704704
# If KeyboardInterrupt occurs here, everything is fine
705705
self.lock.acquire()
706-
# If KeyboardInterrupt occcurs here, __exit__ will not be called
706+
# If KeyboardInterrupt occurs here, __exit__ will not be called
707707
...
708708
# KeyboardInterrupt could occur just before the function returns
709709

Doc/reference/expressions.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ is already executing raises a :exc:`ValueError` exception.
568568
In typical use, this is called with a single exception instance similar to the
569569
way the :keyword:`raise` keyword is used.
570570

571-
For backwards compatability, however, the second signature is
571+
For backwards compatibility, however, the second signature is
572572
supported, following a convention from older versions of Python.
573573
The *type* argument should be an exception class, and *value*
574574
should be an exception instance. If the *value* is not provided, the

0 commit comments

Comments
 (0)