. . . [I]t shall be unlawful for any person to carry any gun, pistol, bowie knife or other dangerous weapon, concealed or unconcealed, on any day of election during the hours the polls are open, or on any day of registration or revision of registration, within a distance of one-half mile of any place of registration or revision of registration; any person violating the provisions of this section shall be deemed guilty of a misdemeanor; and on conviction shall be punished by a fine of not less than one hundred dollars, and imprisonment in the parish jail not less than one month . . . .