Skip to content
Browse files

PEP8 / pyflakes cleanup.

  • Loading branch information...
1 parent 58b5529 commit b4cd60558bf5c6e27e95bdcc697ac40701c12b19 @garnaat garnaat committed Mar 27, 2012
Showing with 12 additions and 6 deletions.
  1. +12 −6 boto/auth_handler.py
View
18 boto/auth_handler.py
@@ -14,7 +14,7 @@
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
# ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
-# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
@@ -25,22 +25,27 @@
from .plugin import Plugin
+
class NotReadyToAuthenticate(Exception):
- pass
+
+ pass
+
class AuthHandler(Plugin):
capability = []
def __init__(self, host, config, provider):
- """Constructs the handlers.
+ """
+ Constructs the handlers.
+
:type host: string
:param host: The host to which the request is being sent.
- :type config: boto.pyami.Config
+ :type config: boto.pyami.Config
:param config: Boto configuration.
- :type provider: boto.provider.Provider
+ :type provider: boto.provider.Provider
:param provider: Provider details.
Raises:
@@ -50,7 +55,8 @@ def __init__(self, host, config, provider):
pass
def add_auth(self, http_request):
- """Invoked to add authentication details to request.
+ """
+ Invoked to add authentication details to request.
:type http_request: boto.connection.HTTPRequest
:param http_request: HTTP request that needs to be authenticated.

0 comments on commit b4cd605

Please sign in to comment.
Something went wrong with that request. Please try again.