diff options
author | Guido van Rossum <guido@dropbox.com> | 2013-11-01 21:13:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@dropbox.com> | 2013-11-01 21:13:30 (GMT) |
commit | 2b430b8720f0d206491250220672d4f1d0189b5a (patch) | |
tree | 1d607ff32cc677582e3b6cf8ac4533a1d9ecfbd8 /Lib/asyncio | |
parent | 3317a1325385a6b7a4a208e0d00c43e9e8ac562e (diff) | |
download | cpython-2b430b8720f0d206491250220672d4f1d0189b5a.zip cpython-2b430b8720f0d206491250220672d4f1d0189b5a.tar.gz cpython-2b430b8720f0d206491250220672d4f1d0189b5a.tar.bz2 |
asyncio: Fold some long lines.
Diffstat (limited to 'Lib/asyncio')
-rw-r--r-- | Lib/asyncio/selector_events.py | 3 | ||||
-rw-r--r-- | Lib/asyncio/tasks.py | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Lib/asyncio/selector_events.py b/Lib/asyncio/selector_events.py index f7bc61a..e61a88d 100644 --- a/Lib/asyncio/selector_events.py +++ b/Lib/asyncio/selector_events.py @@ -416,7 +416,8 @@ class _SelectorTransport(transports.Transport): tulip_log.exception('pause_writing() failed') def _maybe_resume_protocol(self): - if self._protocol_paused and self.get_write_buffer_size() <= self._low_water: + if (self._protocol_paused and + self.get_write_buffer_size() <= self._low_water): self._protocol_paused = False try: self._protocol.resume_writing() diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py index 6385017..2a21a4b 100644 --- a/Lib/asyncio/tasks.py +++ b/Lib/asyncio/tasks.py @@ -62,8 +62,9 @@ class CoroWrapper: code = func.__code__ filename = code.co_filename lineno = code.co_firstlineno - logger.error('Coroutine %r defined at %s:%s was never yielded from', - func.__name__, filename, lineno) + logger.error( + 'Coroutine %r defined at %s:%s was never yielded from', + func.__name__, filename, lineno) def coroutine(func): |