def trunc(self, s):
        if len(s) > self.maxstr:
            return s[:self.maxstr-3] + '...'
        else:
            return s
dataset/ETHPy150Open ejeschke/ginga/ginga/misc/plugins/Info.py/Info.trunc/original