. . . "(1) Every lease (whether made before or after the passing of this Act) of a tenement which contains a covenant, condition, or agreement absolutely prohibiting the assignment, sub-letting, changing, or otherwise parting with the possession of such tenement shall have effect as if such covenant, condition, or agreement were a covenant, condition, or agreement prohibiting the assignment, sub-letting," . .