Skip to content

Commit bf25660

Browse files
authored
Merge pull request #4275 from branfosj/ft
remove deprecated functionality from `filetools`
2 parents 179182d + b243c9e commit bf25660

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

easybuild/tools/filetools.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1734,7 +1734,7 @@ def convert_name(name, upper=False):
17341734

17351735

17361736
def 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):
1737+
group_id=None, relative=True, ignore_errors=False):
17381738
"""
17391739
Change permissions for specified path, using specified permission bits
17401740
@@ -1751,11 +1751,6 @@ def adjust_permissions(provided_path, permission_bits, add=True, onlyfiles=False
17511751
and directories (if onlyfiles is False) in path
17521752
"""
17531753

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-
17591754
provided_path = os.path.abspath(provided_path)
17601755

17611756
if recursive:
@@ -2091,13 +2086,6 @@ def path_matches(path, paths):
20912086
return False
20922087

20932088

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-
21012089
def find_backup_name_candidate(src_file):
21022090
"""Returns a non-existing file to be used as destination for backup files"""
21032091

@@ -2204,11 +2192,6 @@ def cleanup(logfile, tempdir, testing, silent=False):
22042192
print_msg(msg, log=None, silent=testing or silent)
22052193

22062194

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-
22122195
def encode_string(name):
22132196
"""
22142197
This encoding function handles funky software names ad infinitum, like:

0 commit comments

Comments
 (0)