Browse Source

clean code

Bastien Sevajol 6 years ago
parent
commit
0d69b01c03
1 changed files with 2 additions and 3 deletions
  1. 2 3
      hapic/doc.py

+ 2 - 3
hapic/doc.py View File

149
             app = bottle.default_app()
149
             app = bottle.default_app()
150
         else:
150
         else:
151
             bottle.default_app.push(app)
151
             bottle.default_app.push(app)
152
-        flatten = lambda l: [item for sublist in l for item in sublist]
153
 
152
 
154
         spec = APISpec(
153
         spec = APISpec(
155
             title=title,
154
             title=title,
156
             description=description,
155
             description=description,
157
             version='1.0.0',
156
             version='1.0.0',
158
-            plugins=[
157
+            plugins=(
159
                 'apispec.ext.bottle',
158
                 'apispec.ext.bottle',
160
                 'apispec.ext.marshmallow',
159
                 'apispec.ext.marshmallow',
161
-            ],
160
+            ),
162
             schema_name_resolver_callable=generate_schema_name,
161
             schema_name_resolver_callable=generate_schema_name,
163
         )
162
         )
164
 
163