File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments