コード例 #1
0
ファイル: _bridgesupport.py プロジェクト: MichalSe/inspectrum
    def process_data(self, xmldata):
        root = ET.fromstring(xmldata.strip())

        if root.tag != 'signatures':
            raise objc.error("invalid root node in bridgesupport file")

        for node in root:
            method = getattr(self, 'do_%s' % (node.tag, ), None)
            if method is None:
                continue

            method(node)
コード例 #2
0
    def process_data(self, xmldata):
        root = ET.fromstring(xmldata.strip())

        if root.tag != 'signatures':
            raise objc.error("invalid root node in bridgesupport file")

        for node in root:
            method = getattr(self, 'do_%s'%(node.tag,), None)
            if method is None:
                continue

            method(node)