@classmethod
    def from_re_match(cls, match):
        kwargs = match.groupdict()
        if kwargs['address'] != 'none':
            kwargs['address'] = (kwargs['host'], int(kwargs['port']))
        del kwargs['host']
        del kwargs['port']
        return cls(**kwargs)
Return an event constructed from a self.regex match
dataset/ETHPy150Open pmrowla/pysrcds/srcds/events/generic.py/ConnectionEvent.from_re_match