asyncio: Fold some long lines.
This commit is contained in:
parent
3317a13253
commit
2b430b8720
|
@ -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()
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue