def hydrate(self, data): return hydrate_from_xml(self, data) class IncusClient(object):
def hydrate(self, data): hydrate_from_xml(self, data) self.channels = [ABChannelInfo().hydrate(etree.tostring(element, pretty_print=True)) for element in etree.fromstring(data).xpath('.//abchannel')] return self