Skip to content

Commit 7571492

Browse files
committed
asyncio: remove unused imports and unused variables noticed by pyflakes
1 parent 004c727 commit 7571492

File tree

7 files changed

+2
-11
lines changed

7 files changed

+2
-11
lines changed

asyncio/events.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,9 @@
99
]
1010

1111
import subprocess
12-
import sys
1312
import threading
1413
import socket
1514

16-
from .log import logger
17-
1815

1916
class Handle:
2017
"""Object returned by callback registration methods."""

asyncio/futures.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import traceback
1212

1313
from . import events
14-
from .log import logger
1514

1615
# States for Future.
1716
_PENDING = 'PENDING'

asyncio/selectors.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
"""
66

77

8-
from abc import ABCMeta, abstractmethod, abstractproperty
8+
from abc import ABCMeta, abstractmethod
99
from collections import namedtuple, Mapping
10-
import functools
1110
import math
1211
import select
1312
import sys

asyncio/tasks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
'gather', 'shield',
88
]
99

10-
import collections
1110
import concurrent.futures
1211
import functools
1312
import inspect
@@ -486,7 +485,6 @@ def as_completed(fs, *, loop=None, timeout=None):
486485
if isinstance(fs, futures.Future) or iscoroutine(fs):
487486
raise TypeError("expect a list of futures, not %s" % type(fs).__name__)
488487
loop = loop if loop is not None else events.get_event_loop()
489-
deadline = None if timeout is None else loop.time() + timeout
490488
todo = {async(f, loop=loop) for f in set(fs)}
491489
from .queues import Queue # Import here to avoid circular import problem.
492490
done = Queue(loop=loop)

asyncio/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import unittest.mock
1616

1717
from http.server import HTTPServer
18-
from wsgiref.simple_server import make_server, WSGIRequestHandler, WSGIServer
18+
from wsgiref.simple_server import WSGIRequestHandler, WSGIServer
1919

2020
try:
2121
import ssl

asyncio/unix_events.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from . import base_subprocess
1616
from . import constants
1717
from . import events
18-
from . import protocols
1918
from . import selector_events
2019
from . import tasks
2120
from . import transports

asyncio/windows_events.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import math
66
import socket
77
import struct
8-
import subprocess
98
import weakref
109

1110
from . import events

0 commit comments

Comments
 (0)