Any elector at any primary or election who shall allow his ballot or the face of the voting machine voted by him to be seen by any person with the apparent intention of letting it be known how he is about to vote; or in districts in which ballots are used, shall cast or attempt to cast any other than the official ballot which has been given to him by the proper election officer; or who, without having made the declaration under oath or affirmation required by section 1218 of this act, or when the disability which he declared before any registration commission no longer exists, shall permit another to accompany him into the voting compartment or voting machine booth, or to mark his ballot or prepare the voting machine for voting by him; or who shall mark his ballot or prepare the voting machine for voting while another is unlawfully present in the voting machine compartment or voting machine booth with him; or who shall state falsely to any election officer that because of illiteracy he is unable to read the names on the ballot or ballot labels or that by reason of physical disability he cannot see or mark the ballot or enter the voting compartment without assistance or that he cannot see or operate the voting machine or enter the voting machine booth without assistance; or who shall state, as his reason for requiring assistance, a disability from which he does not suffer; or any person who shall go into the voting compartment or voting machine booth with another while voting or be present therein while another is voting, or mark the ballot of another or prepare the voting machine for voting with another, except in strict accordance with the provisions of this act; or any person who shall interfere with any elector when inside the enclosed space or when marking his ballot, or preparing the voting machine for voting, or who shall endeavor to induce any elector before depositing his ballot to show how he marks or has marked his ballot; or any person giving assistance who shall attempt to influence the vote of the elector whom he is assisting or who shall mark a ballot or prepare a voting machine for voting in any other way than that requested by the voter whom he is assisting, or who shall disclose to anyone the contents of any ballot which has been marked or any voting machine which has been prepared for voting with his assistance, except when required to do so in any legal proceeding, shall be guilty of a misdemeanor, and, upon conviction thereof, shall be sentenced to pay a fine not exceeding one thousand ($1,000) dollars, or to undergo an imprisonment of not more than one (1) year, or both, in the discretion of the court.
25 P.S.§ 3530