summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2013-12-19 21:49:32 (GMT)
committerGuido van Rossum <guido@python.org>2013-12-19 21:49:32 (GMT)
commit9ba75db3c5d12c8d03bccc41f27dd9c6134cfe3b (patch)
treebef78c9fd1a00dd1e8ee6672fc6d48e87721b290 /Lib
parent4c3c699e623ac8d942a4ede93b13d8dc4146e0ec (diff)
downloadcpython-9ba75db3c5d12c8d03bccc41f27dd9c6134cfe3b.zip
cpython-9ba75db3c5d12c8d03bccc41f27dd9c6134cfe3b.tar.gz
cpython-9ba75db3c5d12c8d03bccc41f27dd9c6134cfe3b.tar.bz2
asyncio: Clean up formatting.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/asyncio/futures.py4
-rw-r--r--Lib/test/test_asyncio/test_tasks.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/Lib/asyncio/futures.py b/Lib/asyncio/futures.py
index 1be3117..0188f52 100644
--- a/Lib/asyncio/futures.py
+++ b/Lib/asyncio/futures.py
@@ -302,9 +302,7 @@ class Future:
self._schedule_callbacks()
if _PY34:
self._traceback = traceback.format_exception(
- exception.__class__,
- exception,
- exception.__traceback__)
+ exception.__class__, exception, exception.__traceback__)
else:
self._tb_logger = _TracebackLogger(exception)
# Arrange for the logger to be activated after all callbacks
diff --git a/Lib/test/test_asyncio/test_tasks.py b/Lib/test/test_asyncio/test_tasks.py
index e303f50..79a25d2 100644
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -1115,6 +1115,7 @@ class TaskTests(unittest.TestCase):
def test_current_task(self):
self.assertIsNone(tasks.Task.current_task(loop=self.loop))
+
@tasks.coroutine
def coro(loop):
self.assertTrue(tasks.Task.current_task(loop=loop) is task)
@@ -1146,7 +1147,8 @@ class TaskTests(unittest.TestCase):
task1 = tasks.Task(coro1(self.loop), loop=self.loop)
task2 = tasks.Task(coro2(self.loop), loop=self.loop)
- self.loop.run_until_complete(tasks.wait((task1, task2), loop=self.loop))
+ self.loop.run_until_complete(tasks.wait((task1, task2),
+ loop=self.loop))
self.assertIsNone(tasks.Task.current_task(loop=self.loop))
# Some thorough tests for cancellation propagation through