X-Git-Url: https://jfr.im/git/z_archive/twitter.git/blobdiff_plain/568331a954966fe0a980523b98f5195cc1026c5c..d20da7f3e83b0c68402d46ef96c463c307cd9e2f:/twitter/auth.py diff --git a/twitter/auth.py b/twitter/auth.py index e441d5b..88daf74 100644 --- a/twitter/auth.py +++ b/twitter/auth.py @@ -27,3 +27,10 @@ class UserPassAuth(Auth): def generate_headers(self): return {"Authorization": "Basic " + encodestring("%s:%s" %( self.username, self.password)).strip('\n')} + +class NoAuth(UserPassAuth): + def __init__(self): + pass + + def generate_headers(self): + return {}