summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-21 22:39:16 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-01-21 22:39:16 (GMT)
commit442b0adccda014e81950a38b1a56e8f06131767a (patch)
tree5b867834dd07819479c54d31a43e6876d9a6d8cd /Lib/asyncio
parentcd0f7f9832e6aa8363f85152810738111b9a181d (diff)
downloadcpython-442b0adccda014e81950a38b1a56e8f06131767a.zip
cpython-442b0adccda014e81950a38b1a56e8f06131767a.tar.gz
cpython-442b0adccda014e81950a38b1a56e8f06131767a.tar.bz2
asyncio: pyflakes, remove unused import
tests: Remove unused function; inline another function
Diffstat (limited to 'Lib/asyncio')
-rw-r--r--Lib/asyncio/base_events.py2
-rw-r--r--Lib/asyncio/selector_events.py1
2 files changed, 1 insertions, 2 deletions
diff --git a/Lib/asyncio/base_events.py b/Lib/asyncio/base_events.py
index 5df5b83..739296b 100644
--- a/Lib/asyncio/base_events.py
+++ b/Lib/asyncio/base_events.py
@@ -636,7 +636,7 @@ class BaseEventLoop(events.AbstractEventLoop):
try:
yield from waiter
- except Exception as exc:
+ except Exception:
transport.close()
raise
diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py
index 4d3e5d9..24f8461 100644
--- a/Lib/asyncio/selector_events.py
+++ b/Lib/asyncio/selector_events.py
@@ -10,7 +10,6 @@ import collections
import errno
import functools
import socket
-import sys
try:
import ssl
except ImportError: # pragma: no cover