From a8ae71fd75c0025f817064cefe7d6bcab1f4204f Mon Sep 17 00:00:00 2001 From: Randall Degges Date: Tue, 17 Aug 2010 16:54:47 +0800 Subject: [PATCH] Adding a bit more PEP-8. --- twython/core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/twython/core.py b/twython/core.py index 921e461..496142d 100644 --- a/twython/core.py +++ b/twython/core.py @@ -36,6 +36,7 @@ except ImportError: except: raise Exception("Twython requires the simplejson library (or Python 2.6) to work. http://www.undefined.org/python/") + class TwythonError(Exception): def __init__(self, msg, error_code=None): self.msg = msg @@ -44,18 +45,21 @@ class TwythonError(Exception): def __str__(self): return repr(self.msg) + class APILimit(TwythonError): def __init__(self, msg): self.msg = msg def __str__(self): return repr(self.msg) + class AuthError(TwythonError): def __init__(self, msg): self.msg = msg def __str__(self): return repr(self.msg) + class setup: def __init__(self, username = None, password = None, headers = None, proxy = None, version = 1): """setup(username = None, password = None, proxy = None, headers = None)