Skip to content

Commit

Permalink
[3.10] pythongh-93675: Fix typos in Doc/ (pythonGH-93676)
Browse files Browse the repository at this point in the history
Closes pythonGH-93675
(cherry picked from commit 8305137)

Co-authored-by: luzpaz <luzpaz@users.noreply.github.com>
  • Loading branch information
luzpaz authored and ambv committed Jun 21, 2022
1 parent 46d0e1c commit edc0c89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Doc/library/signal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ To illustrate this issue, consider the following code::
def __enter__(self):
# If KeyboardInterrupt occurs here, everything is fine
self.lock.acquire()
# If KeyboardInterrupt occcurs here, __exit__ will not be called
# If KeyboardInterrupt occurs here, __exit__ will not be called
...
# KeyboardInterrupt could occur just before the function returns

Expand Down
2 changes: 1 addition & 1 deletion Doc/reference/expressions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ is already executing raises a :exc:`ValueError` exception.
In typical use, this is called with a single exception instance similar to the
way the :keyword:`raise` keyword is used.

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

0 comments on commit edc0c89

Please sign in to comment.