CIC
Canon 1313
Book VI. Penal sanctions in the Church
Penal law
Code of Canon Law
English§ 1. If a law is changed after an offence has been committed, the law more favourable to the offender is to be applied.
§ 2. If a later law removes a law, or at least a penalty, the penalty immediately lapses.