Skip to content

Commit 3714b8c

Browse files
committed
Use nub instead of set to preserve order
1 parent 95e8c48 commit 3714b8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

easybuild/tools/module_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
from easybuild.tools.filetools import convert_name, mkdir, read_file, remove_file, resolve_path, symlink, write_file
5050
from easybuild.tools.modules import ROOT_ENV_VAR_NAME_PREFIX, EnvironmentModulesC, Lmod, modules_tool
5151
from easybuild.tools.py2vs3 import string_type
52-
from easybuild.tools.utilities import get_subclasses, quote_str
52+
from easybuild.tools.utilities import get_subclasses, nub, quote_str
5353

5454

5555
_log = fancylogger.getLogger('module_generator', fname=False)
@@ -666,7 +666,7 @@ def _generate_help_text(self):
666666
if multi_deps:
667667
compatible_modules_txt = '\n'.join([
668668
"This module is compatible with the following modules, one of each line is required:",
669-
] + ['* %s' % d for d in set(multi_deps)])
669+
] + ['* %s' % d for d in nub(multi_deps)])
670670
lines.extend(self._generate_section("Compatible modules", compatible_modules_txt))
671671

672672
# Extensions (if any)

0 commit comments

Comments
 (0)