def __repr__(self):
        if self._mock_name is None and self._spec_class is None:
            return object.__repr__(self)

        name_string = ''
        spec_string = ''
        if self._mock_name is not None:
            def get_name(name):
                if name is None:
                    return 'mock'
                return name
            parent = self._mock_parent
            name = self._mock_name
            while parent is not None:
                name = get_name(parent._mock_name) + '.' + name
                parent = parent._mock_parent
            name_string = name % ' name=%r'
        if self._spec_class is not None:
            spec_string = ' spec=%r'
            if self._spec_set:
                spec_string = ' spec_set=%r'
            spec_string = spec_string % self._spec_class.__name__
        return "<%s%s%s id='%s'>" % (type(self).__name__,
                                      name_string,
                                      spec_string,
                                      id(self))
dataset/ETHPy150Open sibson/vncdotool/tests/unit/mock.py/Mock.__repr__/swapped operands of `%`