diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-01-08 23:09:10 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-01-08 23:09:10 (GMT) |
commit | 15cc678d8971f5ee1a7ea5e88bcd22413601f033 (patch) | |
tree | ea7e29de0dc1817be74197a19db93957fe3459bf /Lib/asyncio/coroutines.py | |
parent | 8d9c145f61d43fb9d43ad43c04744ffd32c93d8c (diff) | |
download | cpython-15cc678d8971f5ee1a7ea5e88bcd22413601f033.zip cpython-15cc678d8971f5ee1a7ea5e88bcd22413601f033.tar.gz cpython-15cc678d8971f5ee1a7ea5e88bcd22413601f033.tar.bz2 |
asyncio: Truncate to 80 columns
Diffstat (limited to 'Lib/asyncio/coroutines.py')
-rw-r--r-- | Lib/asyncio/coroutines.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Lib/asyncio/coroutines.py b/Lib/asyncio/coroutines.py index c28de95..a1b2875 100644 --- a/Lib/asyncio/coroutines.py +++ b/Lib/asyncio/coroutines.py @@ -182,14 +182,18 @@ def _format_coroutine(coro): and not inspect.isgeneratorfunction(coro.func)): filename, lineno = events._get_function_source(coro.func) if coro.gi_frame is None: - coro_repr = '%s() done, defined at %s:%s' % (coro_name, filename, lineno) + coro_repr = ('%s() done, defined at %s:%s' + % (coro_name, filename, lineno)) else: - coro_repr = '%s() running, defined at %s:%s' % (coro_name, filename, lineno) + coro_repr = ('%s() running, defined at %s:%s' + % (coro_name, filename, lineno)) elif coro.gi_frame is not None: lineno = coro.gi_frame.f_lineno - coro_repr = '%s() running at %s:%s' % (coro_name, filename, lineno) + coro_repr = ('%s() running at %s:%s' + % (coro_name, filename, lineno)) else: lineno = coro.gi_code.co_firstlineno - coro_repr = '%s() done, defined at %s:%s' % (coro_name, filename, lineno) + coro_repr = ('%s() done, defined at %s:%s' + % (coro_name, filename, lineno)) return coro_repr |