What is this song I have stuck in my head?

4

I’ve been humming this song all day. I think it is the soundtrack for some western comedy movie (Wagon’s East or Blazing Saddles or something, but neither of those is it).

What in the world is this from?!