Skip to content

Commit bfb99eb

Browse files
Artem Yushkovskiyasvetlov
Artem Yushkovskiy
authored andcommitted
Fix issue #3644: PY38: web_protocol.RequestHandler mismatch _keepalive field with __slots__ (#3727)
1 parent 9504fe2 commit bfb99eb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES/3644.bugfix

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix _keepalive field in __slots__ of web_protocol.RequestHandler.

aiohttp/web_protocol.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class RequestHandler(BaseProtocol):
106106
"""
107107
KEEPALIVE_RESCHEDULE_DELAY = 1
108108

109-
__slots__ = ('_request_count', '_keep_alive', '_manager',
109+
__slots__ = ('_request_count', '_keepalive', '_manager',
110110
'_request_handler', '_request_factory', '_tcp_keepalive',
111111
'_keepalive_time', '_keepalive_handle', '_keepalive_timeout',
112112
'_lingering_time', '_messages', '_message_tail',

0 commit comments

Comments
 (0)