Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64d750b

Browse files
committed
asyncio: Fix pyflakes errors
- Add a missing import - Remove an unused import - Remove unused variables
1 parent c73701d commit 64d750b

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

Doc/library/asyncio-eventloop.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,10 +588,14 @@ Debug mode
588588

589589
Get the debug mode (:class:`bool`) of the event loop, ``False`` by default.
590590

591+
.. versionadded:: 3.4.2
592+
591593
.. method:: BaseEventLoop.set_debug(enabled: bool)
592594

593595
Set the debug mode of the event loop.
594596

597+
.. versionadded:: 3.4.2
598+
595599
.. seealso::
596600

597601
The :ref:`Develop with asyncio <asyncio-dev>` section.

Lib/test/test_asyncio/test_selector_events.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,7 @@ def callback():
108108
self.assertRaises(RuntimeError, self.loop.add_writer, fd, callback)
109109

110110
def test_close_no_selector(self):
111-
ssock = self.loop._ssock
112-
csock = self.loop._csock
113-
remove_reader = self.loop.remove_reader = mock.Mock()
114-
111+
self.loop.remove_reader = mock.Mock()
115112
self.loop._selector.close()
116113
self.loop._selector = None
117114
self.loop.close()

Lib/test/test_asyncio/test_tasks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Tests for tasks.py."""
22

3-
import gc
43
import os.path
54
import sys
65
import types

Lib/test/test_asyncio/test_windows_events.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import asyncio
1111
from asyncio import _overlapped
12+
from asyncio import test_utils
1213
from asyncio import windows_events
1314

1415

0 commit comments

Comments
 (0)