@@ -1238,7 +1238,7 @@ def get_easyblock_classes(package_name):
1238
1238
modules = import_available_modules (package_name )
1239
1239
1240
1240
for mod in modules :
1241
- for name , obj in inspect .getmembers (mod , inspect .isclass ):
1241
+ for name , _ in inspect .getmembers (mod , inspect .isclass ):
1242
1242
eb_class = getattr (mod , name )
1243
1243
# skip imported classes that are not easyblocks
1244
1244
if eb_class .__module__ .startswith (package_name ) and eb_class not in easyblocks :
@@ -1247,10 +1247,15 @@ def get_easyblock_classes(package_name):
1247
1247
return easyblocks
1248
1248
1249
1249
1250
- def gen_easyblocks_overview_md (package_name , path_to_examples , common_params = {} , doc_functions = [] ):
1250
+ def gen_easyblocks_overview_md (package_name , path_to_examples , common_params = None , doc_functions = None ):
1251
1251
"""
1252
1252
Compose overview of all easyblocks in the given package in MarkDown format
1253
1253
"""
1254
+ if common_params is None :
1255
+ common_params = {}
1256
+ if doc_functions is None :
1257
+ doc_functions = []
1258
+
1254
1259
eb_classes = get_easyblock_classes (package_name )
1255
1260
1256
1261
eb_links = []
@@ -1272,10 +1277,15 @@ def gen_easyblocks_overview_md(package_name, path_to_examples, common_params={},
1272
1277
return heading + doc
1273
1278
1274
1279
1275
- def gen_easyblocks_overview_rst (package_name , path_to_examples , common_params = {} , doc_functions = [] ):
1280
+ def gen_easyblocks_overview_rst (package_name , path_to_examples , common_params = None , doc_functions = None ):
1276
1281
"""
1277
1282
Compose overview of all easyblocks in the given package in rst format
1278
1283
"""
1284
+ if common_params is None :
1285
+ common_params = {}
1286
+ if doc_functions is None :
1287
+ doc_functions = []
1288
+
1279
1289
eb_classes = get_easyblock_classes (package_name )
1280
1290
1281
1291
doc = []
@@ -1382,7 +1392,7 @@ def gen_easyblock_doc_section_md(eb_class, path_to_examples, common_params, doc_
1382
1392
example_ec = os .path .join (path_to_examples , '%s.eb' % classname )
1383
1393
if os .path .exists (example_ec ):
1384
1394
doc .extend ([
1385
- "### Example easyconfig for ``" + classname + "`` easyblock" ,
1395
+ "### Example easyconfig for ``" + classname + "`` easyblock" ,
1386
1396
'' ,
1387
1397
'```python' ,
1388
1398
read_file (example_ec ),
0 commit comments