Worried that California might legalize recreational marijuana, the state's third-largest city by population has voted to ban pot sales ahead of Tuesday's election.

San Jose isn't alone in scrambling to block the possible effects of Proposition 64, which would legalize pot but also allow local bans on sales.

Dozens of cities and counties from tiny Blue Lake in the heart of Northern California's pot-growing mecca to National City near the Mexico border have either imposed or are contemplating tough restrictions on recreational marijuana sales and cultivation.

However, under Proposition 64, which is winning in polls, local governments would not be able to prohibit people 21 and older from having up to six marijuana plants for personal use and possessing up to an ounce of pot.