def get_packeter(): p = packeter.Packeter() p.configure(get_default_config()) return p
def send_Disconnect(self, reason=None): logger.info('%r sending disconnect: %r' % (self, reason)) self.send_packet(packeter.Packeter().dump_Disconnect(reason=reason))