KING OF PRUSSIA, Pa. — It was supposed to be a political firewall. It has become a laughingstock.

The Seventh Congressional District in Pennsylvania is nicknamed Goofy Kicking Donald Duck because its highly contorted shape resembles one Disney character planting a foot in the posterior of another.

But the district got the boot itself this week, along with the rest of the state’s political map. Pennsylvania’s highest court said the Congressional boundaries didn’t just look funny, they also violated the State Constitution, by unfairly favoring the Republicans who drew them.

The decision was greeted with joy by Democrats, and even some Republicans, in the Goofy district, which spreads like an ink blot for 50 miles from the Philadelphia suburbs all the way out to Amish country. Residents have grown weary of having their House seat held up as one of the most gerrymandered in the country, used to explain the country’s descent into tribal politics and voter cynicism.

“The Seventh District has become a national joke,” said Beth Lawn, 72, who lives in a neighborhood she calls “one of Goofy’s fingers.” It was carved from the city of Chester, predominantly poor and black, south of Philadelphia.