Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
b4c93889
Commit
b4c93889
authored
Feb 20, 2014
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asyncio: remove unused imports and unused variables noticed by pyflakes
parent
6f24d83a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
2 additions
and
11 deletions
+2
-11
Lib/asyncio/events.py
Lib/asyncio/events.py
+0
-3
Lib/asyncio/futures.py
Lib/asyncio/futures.py
+0
-1
Lib/asyncio/tasks.py
Lib/asyncio/tasks.py
+0
-2
Lib/asyncio/test_utils.py
Lib/asyncio/test_utils.py
+1
-1
Lib/asyncio/unix_events.py
Lib/asyncio/unix_events.py
+0
-1
Lib/asyncio/windows_events.py
Lib/asyncio/windows_events.py
+0
-1
Lib/selectors.py
Lib/selectors.py
+1
-2
No files found.
Lib/asyncio/events.py
View file @
b4c93889
...
...
@@ -9,12 +9,9 @@ __all__ = ['AbstractEventLoopPolicy',
]
import
subprocess
import
sys
import
threading
import
socket
from
.log
import
logger
class
Handle
:
"""Object returned by callback registration methods."""
...
...
Lib/asyncio/futures.py
View file @
b4c93889
...
...
@@ -11,7 +11,6 @@ import sys
import
traceback
from
.
import
events
from
.log
import
logger
# States for Future.
_PENDING
=
'PENDING'
...
...
Lib/asyncio/tasks.py
View file @
b4c93889
...
...
@@ -7,7 +7,6 @@ __all__ = ['coroutine', 'Task',
'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
)
...
...
Lib/asyncio/test_utils.py
View file @
b4c93889
...
...
@@ -15,7 +15,7 @@ import unittest
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
...
...
Lib/asyncio/unix_events.py
View file @
b4c93889
...
...
@@ -15,7 +15,6 @@ from . import base_events
from
.
import
base_subprocess
from
.
import
constants
from
.
import
events
from
.
import
protocols
from
.
import
selector_events
from
.
import
tasks
from
.
import
transports
...
...
Lib/asyncio/windows_events.py
View file @
b4c93889
...
...
@@ -5,7 +5,6 @@ import errno
import
math
import
socket
import
struct
import
subprocess
import
weakref
from
.
import
events
...
...
Lib/selectors.py
View file @
b4c93889
...
...
@@ -5,9 +5,8 @@ This module allows high-level and efficient I/O multiplexing, built upon the
"""
from
abc
import
ABCMeta
,
abstractmethod
,
abstractproperty
from
abc
import
ABCMeta
,
abstractmethod
from
collections
import
namedtuple
,
Mapping
import
functools
import
math
import
select
import
sys
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment