asyncio: Fold some long lines.

This commit is contained in:
Guido van Rossum 2013-11-01 14:13:30 -07:00
parent 3317a13253
commit 2b430b8720
2 changed files with 5 additions and 3 deletions

View File

@ -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()

View File

@ -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):