mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-26133: Fix typos (#5010)
* Fix typos * Change warning text * Add test
This commit is contained in:
parent
e0aef4f3cd
commit
a8f4e15f3d
2 changed files with 19 additions and 2 deletions
|
@ -56,9 +56,9 @@ class _UnixSelectorEventLoop(selector_events.BaseSelectorEventLoop):
|
|||
self.remove_signal_handler(sig)
|
||||
else:
|
||||
if self._signal_handlers:
|
||||
warinigs.warn(f"Closing the loop {self!r} "
|
||||
warnings.warn(f"Closing the loop {self!r} "
|
||||
f"on interpreter shutdown "
|
||||
f"stage, signal unsubsription is disabled",
|
||||
f"stage, skipping signal handlers removal",
|
||||
ResourceWarning,
|
||||
source=self)
|
||||
self._signal_handlers.clear()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue