mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	asyncio: remove unused imports and unused variables noticed by pyflakes
This commit is contained in:
		
							parent
							
								
									6f24d83ac6
								
							
						
					
					
						commit
						b4c9388947
					
				
					 7 changed files with 2 additions and 11 deletions
				
			
		|  | @ -9,12 +9,9 @@ | |||
|            ] | ||||
| 
 | ||||
| import subprocess | ||||
| import sys | ||||
| import threading | ||||
| import socket | ||||
| 
 | ||||
| from .log import logger | ||||
| 
 | ||||
| 
 | ||||
| class Handle: | ||||
|     """Object returned by callback registration methods.""" | ||||
|  |  | |||
|  | @ -11,7 +11,6 @@ | |||
| import traceback | ||||
| 
 | ||||
| from . import events | ||||
| from .log import logger | ||||
| 
 | ||||
| # States for Future. | ||||
| _PENDING = 'PENDING' | ||||
|  |  | |||
|  | @ -7,7 +7,6 @@ | |||
|            'gather', 'shield', | ||||
|            ] | ||||
| 
 | ||||
| import collections | ||||
| import concurrent.futures | ||||
| import functools | ||||
| import inspect | ||||
|  | @ -486,7 +485,6 @@ def as_completed(fs, *, loop=None, timeout=None): | |||
|     if isinstance(fs, futures.Future) or iscoroutine(fs): | ||||
|         raise TypeError("expect a list of futures, not %s" % type(fs).__name__) | ||||
|     loop = loop if loop is not None else events.get_event_loop() | ||||
|     deadline = None if timeout is None else loop.time() + timeout | ||||
|     todo = {async(f, loop=loop) for f in set(fs)} | ||||
|     from .queues import Queue  # Import here to avoid circular import problem. | ||||
|     done = Queue(loop=loop) | ||||
|  |  | |||
|  | @ -15,7 +15,7 @@ | |||
| import unittest.mock | ||||
| 
 | ||||
| from http.server import HTTPServer | ||||
| from wsgiref.simple_server import make_server, WSGIRequestHandler, WSGIServer | ||||
| from wsgiref.simple_server import WSGIRequestHandler, WSGIServer | ||||
| 
 | ||||
| try: | ||||
|     import ssl | ||||
|  |  | |||
|  | @ -15,7 +15,6 @@ | |||
| from . import base_subprocess | ||||
| from . import constants | ||||
| from . import events | ||||
| from . import protocols | ||||
| from . import selector_events | ||||
| from . import tasks | ||||
| from . import transports | ||||
|  |  | |||
|  | @ -5,7 +5,6 @@ | |||
| import math | ||||
| import socket | ||||
| import struct | ||||
| import subprocess | ||||
| import weakref | ||||
| 
 | ||||
| from . import events | ||||
|  |  | |||
|  | @ -5,9 +5,8 @@ | |||
| """ | ||||
| 
 | ||||
| 
 | ||||
| from abc import ABCMeta, abstractmethod, abstractproperty | ||||
| from abc import ABCMeta, abstractmethod | ||||
| from collections import namedtuple, Mapping | ||||
| import functools | ||||
| import math | ||||
| import select | ||||
| import sys | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Victor Stinner
						Victor Stinner