Skip to content

Commit

Permalink
Update warning in ub.Path.copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Dec 3, 2022
1 parent 9566cd6 commit b46e6bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ubelt/util_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -1288,8 +1288,8 @@ def copy(self, dst, follow_file_symlinks=False, follow_dir_symlinks=False,
xdev.tree_repr(clone0, max_files=10)
xdev.tree_repr(clone1, max_files=10)
"""
warnings.warn('The ub.Path.copy function is experimental and may change! '
'Do not rely on this behavior yet!')
warnings.warn('The ub.Path.copy function is experimental and may change, '
'in corner cases. Primary cases seem stable.')
import shutil
copy_function = self._request_copy_function(
follow_file_symlinks=follow_file_symlinks,
Expand Down Expand Up @@ -1412,7 +1412,7 @@ def _compat_copytree(src, dst, symlinks=False, ignore=None,
A vendored shutil.copytree for older pythons based on the 3.10
implementation
"""
import stat
# import stat
from shutil import Error, copystat, copy2, copy
with os.scandir(src) as itr:
entries = list(itr)
Expand Down

0 comments on commit b46e6bb

Please sign in to comment.