Skip to content

Commit b2dd260

Browse files
author
Mikael Öhman
committed
Use extend rather than equivalent __iadd__ for template deps
1 parent ab71762 commit b2dd260

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

easybuild/framework/easyconfig/templates.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,13 +239,13 @@ def template_constant_dict(config, ignore=None, skip_lower=None, toolchain=None)
239239
# only consider build dependencies when we're actually in iterative mode!
240240
if 'builddependencies' in config.iterate_options:
241241
if config.iterating:
242-
deps += config.get('builddependencies', [])
242+
deps.extend(config.get('builddependencies', []))
243243
else:
244-
deps += config.get('builddependencies', [])
244+
deps.extend(config.get('builddependencies', []))
245245

246246
# Include all toolchain deps (e.g. CUDAcore template in fosscuda)
247247
if config.toolchain.tcdeps is not None:
248-
deps += config.toolchain.tcdeps
248+
deps.extend(config.toolchain.tcdeps)
249249

250250
for dep in deps:
251251
if isinstance(dep, dict):

0 commit comments

Comments
 (0)