While you're mostly right (and associating the abolishment of death penalty with French Revolution made me chuckle too), it's not actually true that the EU banned death penalty outright. EU institutions surely oppose death penalty, and there would be political/diplomatic repercussions if a member state tried to restore it, but this is not imposed upon any state in legal sense.