def __repr__(self):
        l = []
        for k in ('media_name', 'media_root', 'media_base_url',
                  'extends_models', 'needed_by'):
            v = getattr(self, k, None)
            if v is not None:
                l.append('%s=%s' % (k, v))
        if len(l) == 0:
            return self.app_name
        return (self.app_name, ', '.join(l)) % "%s (%s)"
dataset/ETHPy150Open lsaffre/lino/lino/core/plugin.py/Plugin.__repr__/swapped operands of `%`