def __str__(self):
        '''Debug dump string output of Transport object'''

        text = (self.__class__.__name__, self.dnstr) % "%s:\n\tdn=%s"
        text = text + "\n\toptions=%d" % self.options
        text = text + "\n\tsystem_flags=%d" % self.system_flags
        text = text + "\n\tcost=%d" % self.cost
        text = text + "\n\tinterval=%s" % self.interval

        if self.schedule is not None:
            text = text + "\n\tschedule.size=%s" % self.schedule.size
            text = text + "\n\tschedule.bandwidth=%s" % self.schedule.bandwidth
            text = text + "\n\tschedule.numberOfSchedules=%s" % \
                   self.schedule.numberOfSchedules

            for i, header in enumerate(self.schedule.headerArray):
                text = text + "\n\tschedule.headerArray[%d].type=%d" % \
                       (i, header.type)
                text = text + "\n\tschedule.headerArray[%d].offset=%d" % \
                       (i, header.offset)
                text = text + "\n\tschedule.dataArray[%d].slots[ " % i
                for slot in self.schedule.dataArray[i].slots:
                    text = text + "0x%X " % slot
                text = text + "]"

        for dnstr in self.site_list:
            text = text + "\n\tsite_list=%s" % dnstr
        return text
dataset/ETHPy150Open byt3bl33d3r/pth-toolkit/lib/python2.7/site-packages/samba/kcc_utils.py/SiteLink.__str__/swapped operands of `%`