Before people point jarate, I think it is more of a multi-purpose weapon than an anti-spy one.
I think it counters Pyro more than it counter Spies, personally.