— This is an apiolication for a writ of habeas corpus made by J. E. Burke, sheriff of Cassia county, to obtain the custody of one Jack Davis who was convicted of the crime of murder and sentenced to be hung therefor. Said sentence was stayed, pending an appeal to this court, which appeal was decided against said Davis, and thereafter his execution was fixed for February 1, 1899. Thereafter, upon application for a writ of habeas corpus to the federal court, execution was stayed until an appeal to the federal court should be determined. On February 18, 1899, the legislature of Idaho passed ■an act providing that the execution of all persons on whom the penalty of death was imposed should be within the walls of the penitentiary. Thereafter the sheriff of Cassia county delivered said Davis to the warden of the state penitentiary at Boise City, Idaho. By his petition he asks that the said Davis be restored to his custody, so that the sentence of the law may be carried out provided the appeal which is now pending in the circuit court of appeals, ninth circuit, shall be decided against ■said Davis.
When Davis was convicted, and judgment of death passed upon him, section 8021 of the Revised Statutes read as follows:
"Sec. 8021. The judgment of death must be executed within the walls or yard of a jail, or some convenient private place in the county. The sheriff of the county must be present at the execution, and must invite the presence of a physician, the district attorney of the county, and at least twelve reputable citizens, to be selected by him, and he shall, at the request of the defendant, permit such ministers of the gospel, not exceeding two, as the defendant may name, and any persons, relatives or friends, not to exceed five, to be present at the execution, together with *770such peace officers as he may think expedient, to witness the execution. But no other persons than those mentioned in this section can be present ait the execution, nor' can any person under age be allowed to witness the same.”
Thereafter, on February 18, 1899, said section 8021 was amended (see Sess. Laws 1899, p. 342) to read as follows:
“Section 8021. The state prison board of the state, at the expense of the state of Idaho, shall provide a suitable room or place, closed from public view within the walls of the state penitentiary, and therein erect and construct the necessary scaffolding, traps and appliances requisite for carrying into execution-the death penalty; and the punishment of death must, when pronounced by sentence in this state, in each and every case,, be inflicted by the warden in the state penitentiary, in a room or place, and with the appliances aforesaid, by hanging said' convict by the neck until he shall be dead.”
The question involved in this case is, under which law must the judgment against Davis be earned into execution — whether under the provisions of said section 8021 before amendment, or under its provision after amendment. So far as the provisions of said section, as amended, are concerned, the supreme court of the United States, in the case of In re Medley, 134 U. S. 160, 10 Sup. Ct. Rep. 384, 33 L. ed. 835, held that such a law is ex post facto as to crimes committed prior to its passage, since it changes the punishment in such a material degree as to come-within the inhibition of the provisions of the federal constitution. This being a federal question, the decision of that court must be accepted as final. Therefore the execution of said judgment cannot be performed by the warden of the state penitentiary, and the warden has no right to the custody of said Davis.
The question then arises, Did the amendment of said section 8021 Tepeal its provisions as to the execution of the death sentence as they existed prior to the amendment, and thus leave-no law under which said sentence may be executed and because-thereof permit Davis to escape the judgment pronounced against him? Otherwise, to pardon him by legislation. It. *771certainly was mot the intention of the legislature, by said amendatory act, to make a general jail delivery of all prisoners upon whom the death sentence had been passed and not carried into execution at the date of said amendment. Said amenda-tory act has attached thereto the usual repealing clause declaring that “all acts and parts of acts in conflict with this act are hereby repealed.” It is contended by Messrs. Hawley & Puckett, who appear as friends of the court, that said amendatory act, amending certain sections of the Revised Statutes approved February 18, 1899 (see Sess. Laws 1899, p. 340), repeals the former provisions of said sections so amended, relating to the incarceration, punishment, and execution of persons condemned to death, and for that reason, under the rule laid down in In re Medley, supra, there is no law by which the judgment against Davis can be executed; while counsel for the petitioner contends that section 159 of the Revised Statutes of 1887 is a general saving clause for all- criminal statutes such as those under consideration, and that by reason thereof the amendatory act did not repeal the -old law relative to the manner, time, and place of the execution of the death penalty. Said section 159 is as follows:
“See. 159. The repeal of any law creating a criminal offense does not constitute a bar to the indictment and punishment pf an act already committed in violation of the law so repealed, unless the intention to bar such indictment and punishment is expressly declared in the repealing act.”
The evident purpose of that statute was and is to prevent the escape from punishment of those charged with or convicted of crime, where a change is made, by amendment of the .statute then in force, either in the quality of the crime or in' the punishment thereof, when the amended statute is to go into effect before the completion of the punishment imposed. Said section 159 was copied from the Political Code of California (section 329), and that section has been construed by the supreme court of that state in People v. McNulty, 93 Cal. 427, 26 Pac. 597, and 29 Pac. 61, as a general saving clause, and under it a person who, has been convicted of an offense must *772be punished under the law as it existed at the time of the commission of the offense, though the clause of the act prescribing the punishment has since been repealed by an amendment which increases the punishment. In People v. Vincent, 95 Cal. 425, 30 Pac. 581, the court cites with approval People v. McNulty, supra. Those decisions have been approved by the supreme court of the United States. (McNulty v. People, 149 U. S. 645, 13 Sup. Ct. Rep. 959, 37 L. ed. 882; Vincent v. People, 149 U. S. 648, 13 Sup. Ct. Rep. 960, 37 L. ed. 884. See, also, State v. Smith, 62 Minn. 540, 64 N. W. 1022.) Upon both reason and principle we think the rule laid down in those cases correct when applied to the construction of the provisions of said section 159. The amendments, as made by said act, do not apply to convictions for offenses committed before their enactment, and axe not applicable to past offenses and are prospective only in their operation.
Under the facts of this case, as supplemented by the provisions of section 8360 of the Eevised Statutes, which is as follows: “Sec. 8360. In cases where any party is held under illegal restraint or custody, or any other person is entitled to the restraint or custody of such party, the judge or court may order such party to be committed to the restraint or custody of such person as is by law entitled thereto” — the petitioner, as sheriff of said Cassia county, is entitled to the custody of said Davis. Under the law as it was before it was amended, said sheriff was the legal custodian of said Davis until the judgment of the court has been executed, and, as said law was not changed as to Davis,' the sheriff remains Ms legal custodian, and is now entitled to his custody. It is therefore ordered that said Jack Davis be committed to the custody of the petitioner, J. E. Burke, sheriff of Cassia county, to be dealt with according to law and the authority of the court having jurisdiction in the premises.
Huston, C. J., and Quarles, J., concur.