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,16 +149,15 @@ class DocGenerator(object):
149 149
             app = bottle.default_app()
150 150
         else:
151 151
             bottle.default_app.push(app)
152
-        flatten = lambda l: [item for sublist in l for item in sublist]
153 152
 
154 153
         spec = APISpec(
155 154
             title=title,
156 155
             description=description,
157 156
             version='1.0.0',
158
-            plugins=[
157
+            plugins=(
159 158
                 'apispec.ext.bottle',
160 159
                 'apispec.ext.marshmallow',
161
-            ],
160
+            ),
162 161
             schema_name_resolver_callable=generate_schema_name,
163 162
         )
164 163