def rotationInfo(self, axis):
        isNeg = False
        if type(axis) == str and "'" in axis:
            isNeg = True
            axis = axis[0]

        if type(axis) == str:
            axis = CubeState.movementKeys[axis]

        rotationIndcs = [ ]
        for x in xrange(self.size):
            for y in xrange(self.size):
                for z in xrange(self.size):
                    pos = Vector(x-1,y-1,1-z)
                    if pos**axis > 0 and pos == axis:
                        rotationIndcs.append((x,y,z))

        oldValues = { }
        for i in rotationIndcs:
            oldValues[i] = self.state[i[2]][i[1]][i[0]]

        rot = Struct()
        rot.rotationAxis = axis
        rot.rotatingValues =[val[0] for val in oldValues.values()]
        rot.rotationDirection = isNeg
        rot.oldValues = oldValues
        rot.rotationIndcs = rotationIndcs
        return rot
dataset/ETHPy150Open bluquar/cubr/cube.py/CubeState.rotationInfo/swapped operands of `-`