Start using Pyflakes and Hacking
Instead of globally ignoring pyflakes and hacking warnings, only blacklist those that trigger very frequently so far, in order to clean them up in followup commits. Fix and start gating on the rest already. Change-Id: Ied7c7250061e3bf379e8286e8ce3b9e4af817faf
This commit is contained in:
+12
-12
@@ -26,7 +26,7 @@ class BaseException(Exception):
|
||||
|
||||
|
||||
class CommandError(BaseException):
|
||||
"""Invalid usage of CLI"""
|
||||
"""Invalid usage of CLI."""
|
||||
|
||||
|
||||
class InvalidEndpoint(BaseException):
|
||||
@@ -38,11 +38,11 @@ class CommunicationError(BaseException):
|
||||
|
||||
|
||||
class ClientException(Exception):
|
||||
"""DEPRECATED"""
|
||||
"""DEPRECATED!"""
|
||||
|
||||
|
||||
class HTTPException(ClientException):
|
||||
"""Base exception for all HTTP-derived exceptions"""
|
||||
"""Base exception for all HTTP-derived exceptions."""
|
||||
code = 'N/A'
|
||||
|
||||
def __init__(self, details=None):
|
||||
@@ -63,7 +63,7 @@ class HTTPMultipleChoices(HTTPException):
|
||||
|
||||
|
||||
class BadRequest(HTTPException):
|
||||
"""DEPRECATED"""
|
||||
"""DEPRECATED!"""
|
||||
code = 400
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ class HTTPBadRequest(BadRequest):
|
||||
|
||||
|
||||
class Unauthorized(HTTPException):
|
||||
"""DEPRECATED"""
|
||||
"""DEPRECATED!"""
|
||||
code = 401
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ class HTTPUnauthorized(Unauthorized):
|
||||
|
||||
|
||||
class Forbidden(HTTPException):
|
||||
"""DEPRECATED"""
|
||||
"""DEPRECATED!"""
|
||||
code = 403
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ class HTTPForbidden(Forbidden):
|
||||
|
||||
|
||||
class NotFound(HTTPException):
|
||||
"""DEPRECATED"""
|
||||
"""DEPRECATED!"""
|
||||
code = 404
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ class HTTPMethodNotAllowed(HTTPException):
|
||||
|
||||
|
||||
class Conflict(HTTPException):
|
||||
"""DEPRECATED"""
|
||||
"""DEPRECATED!"""
|
||||
code = 409
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ class HTTPConflict(Conflict):
|
||||
|
||||
|
||||
class OverLimit(HTTPException):
|
||||
"""DEPRECATED"""
|
||||
"""DEPRECATED!"""
|
||||
code = 413
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ class HTTPBadGateway(HTTPException):
|
||||
|
||||
|
||||
class ServiceUnavailable(HTTPException):
|
||||
"""DEPRECATED"""
|
||||
"""DEPRECATED!"""
|
||||
code = 503
|
||||
|
||||
|
||||
@@ -161,12 +161,12 @@ def from_response(response, body=None):
|
||||
|
||||
|
||||
class NoTokenLookupException(Exception):
|
||||
"""DEPRECATED"""
|
||||
"""DEPRECATED!"""
|
||||
pass
|
||||
|
||||
|
||||
class EndpointNotFound(Exception):
|
||||
"""DEPRECATED"""
|
||||
"""DEPRECATED!"""
|
||||
pass
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user