

def transport_closed(self, **kwargs):
    '\n        Called by Transports when they close unexpectedly, not as a result of\n        Connection.disconnect().\n\n        TODO: document args\n        '
    msg = 'unknown cause'
    self.logger.warning(('transport to %s closed : %s' % (msg._host, kwargs.get('msg', msg))))
    self._close_info = {
        'reply_code': kwargs.get('reply_code', 0),
        'reply_text': kwargs.get('msg', msg),
        'class_id': kwargs.get('class_id', 0),
        'method_id': kwargs.get('method_id', 0),
    }
    self._connected = False
    self._transport = None
    self._callback_close()

dataset/ETHPy150Open agoragames/haigha/haigha/connection.py Connection.transport_closed/VarMisuse@29/99 `self`->`msg`