From d41617043a477168c2460e00e6099528219c7163 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 22 Aug 2017 17:32:00 +0100 Subject: [PATCH] ResponseConsumer: move _resp initialisation to superclass constructor (nfc) Signed-off-by: Ian Jackson --- hippotat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hippotat b/hippotat index 8bcd62f..abe1cae 100755 --- a/hippotat +++ b/hippotat @@ -33,6 +33,7 @@ class GeneralResponseConsumer(twisted.internet.protocol.Protocol): def __init__(self, cl, req, resp, desc): self._cl = cl self._req = req + self._resp = resp self._desc = desc def _log(self, dflag, msg, **kwargs): @@ -79,7 +80,6 @@ class ResponseConsumer(GeneralResponseConsumer): class ErrorResponseConsumer(GeneralResponseConsumer): def __init__(self, cl, req, resp): super().__init__(cl, req, resp, 'ERROR-RC') - self._resp = resp self._m = b'' try: self._phrase = resp.phrase.decode('utf-8') -- 2.11.0