is_authenticated

This commit is contained in:
Kenneth Reitz
2011-07-24 11:28:28 -04:00
parent 5e0c27007b
commit afe25b7296
2 changed files with 15 additions and 14 deletions
+1
View File
@@ -30,6 +30,7 @@ def basic_auth(username, password):
return args, kwargs
gh = Github()
gh.is_authenticated = True
gh._requests_pre_hook = enable_auth
return gh