39-3-15. Appeals; contempt and habeas corpus.
A. Any person aggrieved by the judgment of the district court in any proceeding for civil contempt, and any person convicted of criminal contempt except criminal contempt committed in the presence of the court, may appeal within thirty days from the judgment of conviction to the supreme court or the court of appeals, as appellate jurisdiction may be vested by law in these courts. Any person convicted of criminal contempt of the court of appeals, except criminal contempt committed in the presence of the court of appeals, may appeal to the supreme court within thirty days from the judgment of conviction. In any case of criminal contempt, the taking of an appeal operates to stay execution of the judgment without bond.
B. In habeas corpus proceedings, where the petitioner is held upon an order, warrant or commitment of any court, and is ordered discharged and released from custody by any district court, the officer having custody of the petitioner, or the district attorney of the district wherein the proceedings are instituted, on behalf of the state, may appeal within thirty days from the order of discharge to the supreme court or the court of appeals, as appellate jurisdiction may be vested by law in these courts. The appeal shall not operate as a stay of execution. If the order of the district court is reversed, the officer from whose custody the petitioner was ordered released, his successor or any other peace officer of the state shall rearrest the petitioner and hold him for trial or commit him to jail or imprisonment as directed by the original order, warrant or commitment.