(xii)has been sentenced by a Criminal Court to transportation or to imprisonment for a period of more than six months for any offence, other than an offence of a political character, or an offence, other than an offence not involving moral delinquency (such sentence not having been reversed or the offence pardoned) so long as he is undergoing the sentence and for three years from the date of the expiration of the sentence :