[Python-checkins] cpython: asyncio: Clean up formatting.

guido.van.rossum python-checkins at python.org
Thu Dec 19 22:49:41 CET 2013


http://hg.python.org/cpython/rev/13a505260f17
changeset: 88082:13a505260f17
user: Guido van Rossum <guido at python.org>
date: Thu Dec 19 13:49:32 2013 -0800
summary:
 asyncio: Clean up formatting.
files:
 Lib/asyncio/futures.py | 4 +---
 Lib/test/test_asyncio/test_tasks.py | 4 +++-
 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Lib/asyncio/futures.py b/Lib/asyncio/futures.py
--- a/Lib/asyncio/futures.py
+++ b/Lib/asyncio/futures.py
@@ -302,9 +302,7 @@
 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
--- a/Lib/test/test_asyncio/test_tasks.py
+++ b/Lib/test/test_asyncio/test_tasks.py
@@ -1115,6 +1115,7 @@
 
 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 @@
 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
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /