The fate of the French Socialists is a warning for Boris Joh