@@ -486,7 +486,7 @@ def extract_file(fn, dest, cmd=None, extra_options=None, overwrite=False, forced
486486 return base_dir
487487
488488
489- def which (cmd , retain_all = False , check_perms = True , log_ok = True , log_error = None , on_error = None ):
489+ def which (cmd , retain_all = False , check_perms = True , log_ok = True , on_error = WARN ):
490490 """
491491 Return (first) path in $PATH for specified command, or None if command is not found
492492
@@ -495,17 +495,6 @@ def which(cmd, retain_all=False, check_perms=True, log_ok=True, log_error=None,
495495 :param log_ok: Log an info message where the command has been found (if any)
496496 :param on_error: What to do if the command was not found, default: WARN. Possible values: IGNORE, WARN, ERROR
497497 """
498- if log_error is not None :
499- _log .deprecated ("'log_error' named argument in which function has been replaced by 'on_error'" , '5.0' )
500- # If set, make sure on_error is at least WARN
501- if log_error and on_error == IGNORE :
502- on_error = WARN
503- elif not log_error and on_error is None : # If set to False, use IGNORE unless on_error is also set
504- on_error = IGNORE
505- # Set default
506- # TODO: After removal of log_error from the parameters, on_error=WARN can be used instead of this
507- if on_error is None :
508- on_error = WARN
509498 if on_error not in (IGNORE , WARN , ERROR ):
510499 raise EasyBuildError ("Invalid value for 'on_error': %s" , on_error )
511500
@@ -1734,7 +1723,7 @@ def convert_name(name, upper=False):
17341723
17351724
17361725def adjust_permissions (provided_path , permission_bits , add = True , onlyfiles = False , onlydirs = False , recursive = True ,
1737- group_id = None , relative = True , ignore_errors = False , skip_symlinks = None ):
1726+ group_id = None , relative = True , ignore_errors = False ):
17381727 """
17391728 Change permissions for specified path, using specified permission bits
17401729
@@ -1751,11 +1740,6 @@ def adjust_permissions(provided_path, permission_bits, add=True, onlyfiles=False
17511740 and directories (if onlyfiles is False) in path
17521741 """
17531742
1754- if skip_symlinks is not None :
1755- depr_msg = "Use of 'skip_symlinks' argument for 'adjust_permissions' is deprecated "
1756- depr_msg += "(symlinks are never followed anymore)"
1757- _log .deprecated (depr_msg , '4.0' )
1758-
17591743 provided_path = os .path .abspath (provided_path )
17601744
17611745 if recursive :
@@ -2091,13 +2075,6 @@ def path_matches(path, paths):
20912075 return False
20922076
20932077
2094- def rmtree2 (path , n = 3 ):
2095- """Wrapper around shutil.rmtree to make it more robust when used on NFS mounted file systems."""
2096-
2097- _log .deprecated ("Use 'remove_dir' rather than 'rmtree2'" , '5.0' )
2098- remove_dir (path )
2099-
2100-
21012078def find_backup_name_candidate (src_file ):
21022079 """Returns a non-existing file to be used as destination for backup files"""
21032080
@@ -2204,11 +2181,6 @@ def cleanup(logfile, tempdir, testing, silent=False):
22042181 print_msg (msg , log = None , silent = testing or silent )
22052182
22062183
2207- def copytree (src , dst , symlinks = False , ignore = None ):
2208- """DEPRECATED and removed. Use copy_dir"""
2209- _log .deprecated ("Use 'copy_dir' rather than 'copytree'" , '4.0' )
2210-
2211-
22122184def encode_string (name ):
22132185 """
22142186 This encoding function handles funky software names ad infinitum, like:
0 commit comments