Commit 5279a276 authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis
Browse files

PEP8 styling fixes in faults.py

parent a7e3126c
......@@ -35,7 +35,7 @@
"""Common API faults."""
def camelCase(s):
def camel_case(s):
return s[0].lower() + s[1:]
......@@ -44,7 +44,7 @@ class Fault(Exception):
Exception.__init__(self, message, details, name)
self.message = message
self.details = details
self.name = name or camelCase(self.__class__.__name__)
self.name = name or camel_case(self.__class__.__name__)
# 2xx
......@@ -61,10 +61,6 @@ class Unauthorized(Fault):
code = 401
class ResizeNotAllowed(Fault):
code = 403
class Forbidden(Fault):
code = 403
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment