google/oauth2client — pull request #29 by kaste (2014-07-21 21:47:29+00:00)
Title: Unmark as invalid when token can be refreshed

It is totally possible that the server (in a bad state) responds temporarily with an status!=200 and on a retry actually refreshes the token. So we need to reset the flag `self.invalid`.