Penal Code § 1445
CHAPTER 1. Proceedings in Misdemeanor and Infraction Cases
When the defendant pleads guilty, or is convicted, either by the court, or by a jury, the court shall render judgment thereon of fine or imprisonment, or both, as the case may be.