…no critic was prepared for “West Wing” alum Bradley Whitford to turn up onstage for Fox’s upcoming buddy cop show “Code 58” wearing a classic ’70s push-broom on his upper lip.

Whitford, who grew the ’stache to capture his character’s retro approach to crime-solving, said the facial hair has been a cross to bear.

“Women are fascinated and creeped out,” he said, “and I always get this reaction which is, ‘Oh, are you growing that for a part?’ A kind of disgusted, creeped-out thing. And my kids hate it.”

But he did feel he deserved some credit for the personal transformation: “My growing this mustache, I gotta say, it reminds me of a lot of the work De Niro did in ‘Raging Bull.’ ”