def __repr__(self):
        if self.subtext:
            return '<%s: %s [%s]>' % (self.__class__.__name__, self.name, self.subtext)

        return '<%s: %s>' % (self.__class__.__name__, self.name)
dataset/ETHPy150Open vishnevskiy/battlenet/battlenet/things.py/Perk.__repr__/original