mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
PEP 8 clean thanks to auto pep8
This commit is contained in:
1 parent
7f185663d1
commit
f5ed9fbcf1
124 files changed
+340
-210
No files matched your search
@@ -22,7 +22,9 @@ from gns3server.web.route import Route
|
||||
|
||||
|
||||
class Documentation(object):
|
||||
|
||||
"""Extract API documentation as Sphinx compatible files"""
|
||||
|
||||
def __init__(self, route):
|
||||
self._documentation = route.get_documentation()
|
||||
|
||||
|
||||
@@ -38,6 +38,7 @@ class Response(aiohttp.web.Response):
|
||||
|
||||
:param anwser The response as a Python object
|
||||
"""
|
||||
|
||||
def json(self, answer):
|
||||
"""Pass a Python object and return a JSON as answer"""
|
||||
|
||||
|
||||
@@ -49,6 +49,7 @@ def parse_request(request, input_schema):
|
||||
|
||||
|
||||
class Route(object):
|
||||
|
||||
""" Decorator adding:
|
||||
* json schema verification
|
||||
* routing inside handlers
|
||||
|
||||
Reference in new issue
Block a user