Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
5279a276
Commit
5279a276
authored
Apr 09, 2013
by
Ilias Tsitsimpis
Browse files
PEP8 styling fixes in faults.py
parent
a7e3126c
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-django-lib/snf_django/lib/api/faults.py
View file @
5279a276
...
...
@@ -35,7 +35,7 @@
"""Common API faults."""
def
camel
C
ase
(
s
):
def
camel
_c
ase
(
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
camel
C
ase
(
self
.
__class__
.
__name__
)
self
.
name
=
name
or
camel
_c
ase
(
self
.
__class__
.
__name__
)
# 2xx
...
...
@@ -61,10 +61,6 @@ class Unauthorized(Fault):
code
=
401
class
ResizeNotAllowed
(
Fault
):
code
=
403
class
Forbidden
(
Fault
):
code
=
403
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment