diff options
author | Andrew Svetlov <andrew.svetlov@gmail.com> | 2017-12-26 09:53:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-26 09:53:38 (GMT) |
commit | a8f4e15f3d33084862ddd3a7d58cd00034e94f16 (patch) | |
tree | 954ecaaa41029b44440b11ac7c73c4b7f7b4e6a7 /Lib/asyncio | |
parent | e0aef4f3cd339a405d2a7fbd35a50afa64834f84 (diff) | |
download | cpython-a8f4e15f3d33084862ddd3a7d58cd00034e94f16.zip cpython-a8f4e15f3d33084862ddd3a7d58cd00034e94f16.tar.gz cpython-a8f4e15f3d33084862ddd3a7d58cd00034e94f16.tar.bz2 |
bpo-26133: Fix typos (#5010)
* Fix typos
* Change warning text
* Add test
Diffstat (limited to 'Lib/asyncio')
-rw-r--r-- | Lib/asyncio/unix_events.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/asyncio/unix_events.py b/Lib/asyncio/unix_events.py index 5d6a3c0..4f6beb4 100644 --- a/Lib/asyncio/unix_events.py +++ b/Lib/asyncio/unix_events.py @@ -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() |