Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Issue a warning in debug mode; return False when interpreter is final…
…izing
  • Loading branch information
Yury Selivanov
Yury Selivanov committed Nov 7, 2016
commit 92f36ae82295fbf8d182d1e6f1338a51afd7f76b
6 changes: 5 additions & 1 deletion asyncio/unix_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ def remove_signal_handler(self, sig):
if self._interpreter_shutting_down:
# The interpreter is being shutdown. `PyOS_FiniInterrupts`
# was already called and it has restored all signals already.
return
if self._debug:
warnings.warn(
"the loop was not closed properly; call loop.close()",
ResourceWarning)
return False

self._check_signal(sig)
try:
Expand Down