SHAFAQNA – President Francois Hollande’s ruling Socialists won a hotly-contested parliamentary by-election in eastern France on Sunday, narrowly beating a National Front rival after the conservative UMP candidate was eliminated in a first round.

Hollande has seen his popularity ratings double from record lows in the wake of last month’s Islamist attacks in Paris. Underscoring the stakes of the election, senior Socialists including Prime Minister Manuel Valls travelled to the Doubs to support their candidate.

Still, Marine Le Pen’s far-right, anti-immigrant National Front has seized on dissatisfaction with mainstream parties in industrial or rural areas where unemployment is higher. It hopes to see gains in departmental elections in just over a month.

Socialist Frederic Barbier won 51.4 percent of votes, just ahead of National Front candidate Sophie Montel in the industrial north of the Doubs department.

The win of the seat left vacant by Pierre Moscovici, a Socialist deputy appointed as an EU commissioner, will be a relief for Hollande’s party whose control of the National Assembly was weakened by the defection last month of one of their lawmakers to the far-left.

In the first round, the National Front’s Montel came out ahead with 32.6 percent, while Barbier came in second with 28.9 percent, ahead of the UMP contender.

The fact that the UMP’s candidate was eliminated in the first round has led some observers to suggest its leader, ex-president Nicolas Sarkozy, has lost his ability to mobilise right-leaning voters. His authority has been further undermined by a row within the UMP over which message to give to party faithful in the second round, with the party finally urging them to abstain.

A poll by Odoxa found that 68 percent of respondees said his authority as a political figure had been undermined by the saga.