From: Ian Jackson Date: Tue, 22 Aug 2017 16:32:00 +0000 (+0100) Subject: ResponseConsumer: move _resp initialisation to superclass constructor (nfc) X-Git-Tag: hippotat/1.0.0~55^2~9 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=commitdiff_plain;h=d41617043a477168c2460e00e6099528219c7163;ds=sidebyside ResponseConsumer: move _resp initialisation to superclass constructor (nfc) Signed-off-by: Ian Jackson --- 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')