Skip to content

Commit 8aaaec2

Browse files
committed
replace string_type with str in easyblock.py
1 parent f2a60b4 commit 8aaaec2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

easybuild/framework/easyblock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ def make_module_extra(self, altroot=None, altversion=None):
14131413
lines.append(self.module_generator.prepend_paths(key, value, allow_abs=self.cfg['allow_prepend_abs_path']))
14141414

14151415
for (key, value) in self.cfg['modextrapaths_append'].items():
1416-
if isinstance(value, string_type):
1416+
if isinstance(value, str):
14171417
value = [value]
14181418
elif not isinstance(value, (tuple, list)):
14191419
raise EasyBuildError("modextrapaths_append dict value %s (type: %s) is not a list or tuple",

test/framework/easyblock.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,7 @@ def test_make_module_step(self):
12731273
self.assertEqual(num_prepends, 1, "Expected exactly 1 %s command in %s" % (regex.pattern, txt))
12741274

12751275
for (key, vals) in modextrapaths_append.items():
1276-
if isinstance(vals, string_type):
1276+
if isinstance(vals, str):
12771277
vals = [vals]
12781278
for val in vals:
12791279
if get_module_syntax() == 'Tcl':

0 commit comments

Comments
 (0)