def __repr__(self):
        if self.name:
            return '%s(name=%s, raw_name=%s)' % (
                self.__class__.__name__, self.name, self.raw_name)
        else:
            return '%s(raw_name=%s)' % (self.__class__.__name__, self.raw_name)
dataset/ETHPy150Open ardekantur/pyglet/pyglet/input/base.py/Control.__repr__/original