Skip to content

Commit cafc134

Browse files
author
Vasileios Karakasis
committed
Coding style fixes
1 parent 8f4ef98 commit cafc134

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

reframe/core/modules.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -775,10 +775,10 @@ def load_module(self, module):
775775
# Here the module search path removal/addition is repeated since
776776
# 'restore' discards previous module path manipulations
777777
for op, mp in self._extra_module_paths:
778-
if op == '+':
779-
super().searchpath_add(mp)
780-
else:
781-
super().searchpath_remove(mp)
778+
if op == '+':
779+
super().searchpath_add(mp)
780+
else:
781+
super().searchpath_remove(mp)
782782

783783
return []
784784
else:
@@ -802,15 +802,15 @@ def conflicted_modules(self, module):
802802

803803
def emit_load_instr(self, module):
804804
if module.collection:
805-
instructions = [f'module restore {module}']
805+
cmds = [f'module restore {module}']
806806

807807
# Here we append module searchpath removal/addition commands
808808
# since 'restore' discards previous module path manipulations
809809
for op, mp in self._extra_module_paths:
810810
operation = 'use' if op == '+' else 'unuse'
811-
instructions += [f'module {operation} {mp}']
811+
cmds += [f'module {operation} {mp}']
812812

813-
return '\n'.join(instructions)
813+
return '\n'.join(cmds)
814814

815815
return super().emit_load_instr(module)
816816

0 commit comments

Comments
 (0)