Adding a bit more PEP-8.
This commit is contained in:
parent
d5b2c98fb8
commit
a8ae71fd75
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue