def getDict(self, pkg): for offset, section in enumerate(self.fake_sections): tf = TagFile(StringIO(section)) tf.advanceSection() return tf.copy()
def getSections(self, prog): for offset, section in enumerate(self.fake_sections): tf = TagFile(StringIO(section)) tf.advanceSection() yield tf, offset