Skip to content

Commit

Permalink
Merge pull request #4279 from branfosj/mod
Browse files Browse the repository at this point in the history
removed deprecated `mod_exists_regex_template` options in `ModulesTool.exist`
  • Loading branch information
boegel authored Sep 6, 2023
2 parents e2575bb + 8b4cf52 commit 8a75478
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions easybuild/tools/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,18 +549,14 @@ def module_wrapper_exists(self, mod_name, modulerc_fn='.modulerc', mod_wrapper_r

return wrapped_mod

def exist(self, mod_names, mod_exists_regex_template=None, skip_avail=False, maybe_partial=True):
def exist(self, mod_names, skip_avail=False, maybe_partial=True):
"""
Check if modules with specified names exists.
:param mod_names: list of module names
:param mod_exists_regex_template: DEPRECATED and unused
:param skip_avail: skip checking through 'module avail', only check via 'module show'
:param maybe_partial: indicates if the module name may be a partial module name
"""
if mod_exists_regex_template is not None:
self.log.deprecated('mod_exists_regex_template is no longer used', '5.0')

def mod_exists_via_show(mod_name):
"""
Helper function to check whether specified module name exists through 'module show'.
Expand Down

0 comments on commit 8a75478

Please sign in to comment.