sigmavirus24/github3.py — pull request #33 by seveas (2012-10-05 20:40:49+00:00)
Title: Better error messages for authorization methods

From http://developer.github.com/v3/oauth/:

"""
There is an API for users to manage their own tokens. You can only
access your own tokens, and only through Basic Authentication.
"""

When using token based auth to access these methods, you get a very
unhelpful 404 error. Let's be nicer to our API users and turn that into
a fake 401.