From 64bcf3d52b5334ba7dda1580d945d5a59ee04f7e Mon Sep 17 00:00:00 2001 From: MircoT Date: Thu, 18 Jul 2013 23:25:51 +0200 Subject: [PATCH 1/2] Close issue #31. Add DocString to exception classes --- oauth2_provider/exceptions.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/oauth2_provider/exceptions.py b/oauth2_provider/exceptions.py index 67a81373c..25ee92358 100644 --- a/oauth2_provider/exceptions.py +++ b/oauth2_provider/exceptions.py @@ -1,6 +1,5 @@ class OAuthToolkitError(Exception): - """ - TODO: add docs + """Base class for exceptions """ def __init__(self, error=None, redirect_uri=None, *args, **kwargs): super(OAuthToolkitError, self).__init__(*args, **kwargs) @@ -11,7 +10,6 @@ def __init__(self, error=None, redirect_uri=None, *args, **kwargs): class FatalClientError(OAuthToolkitError): - """ - TODO: add docs + """Class for critical errors """ pass From 7eee7d9475d9133cb1cf87b688cc0abef7a98b2a Mon Sep 17 00:00:00 2001 From: MircoT Date: Thu, 18 Jul 2013 23:35:00 +0200 Subject: [PATCH 2/2] Restyling DocString --- oauth2_provider/exceptions.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/oauth2_provider/exceptions.py b/oauth2_provider/exceptions.py index 25ee92358..6c81d5d43 100644 --- a/oauth2_provider/exceptions.py +++ b/oauth2_provider/exceptions.py @@ -1,5 +1,6 @@ class OAuthToolkitError(Exception): - """Base class for exceptions + """ + Base class for exceptions """ def __init__(self, error=None, redirect_uri=None, *args, **kwargs): super(OAuthToolkitError, self).__init__(*args, **kwargs) @@ -10,6 +11,7 @@ def __init__(self, error=None, redirect_uri=None, *args, **kwargs): class FatalClientError(OAuthToolkitError): - """Class for critical errors + """ + Class for critical errors """ pass