summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio/transports.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/asyncio/transports.py')
-rw-r--r--Lib/asyncio/transports.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/asyncio/transports.py b/Lib/asyncio/transports.py
index 3caf853..22df3c7 100644
--- a/Lib/asyncio/transports.py
+++ b/Lib/asyncio/transports.py
@@ -238,8 +238,10 @@ class _FlowControlMixin(Transport):
resume_writing() may be called.
"""
- def __init__(self, extra=None):
+ def __init__(self, extra=None, loop=None):
super().__init__(extra)
+ assert loop is not None
+ self._loop = loop
self._protocol_paused = False
self._set_write_buffer_limits()