The arraignment must be made by the court, or by the clerk or prosecuting attorney under its direction, and consists in reading the accusatory pleading to the defendant and delivering to the defendant a true copy thereof, and of the endorsements thereon, if any, including the list of witnesses, and asking the defendant whether the defendant pleads guilty or not guilty to the accusatory pleading; provided, that where the accusatory pleading is a complaint charging a misdemeanor, a copy of the same need not be delivered to any defendant unless requested by the
defendant.