diff options
author | Daniel Neuhäuser <ich@danielneuhaeuser.de> | 2010-08-14 19:48:42 +0200 |
---|---|---|
committer | Daniel Neuhäuser <ich@danielneuhaeuser.de> | 2010-08-14 19:48:42 +0200 |
commit | 860fc27177370cc55d990584f45d39b3583ca378 (patch) | |
tree | fe54d975923f7e4d14ff3e82bf51f65ca2af155c /tests/path.py | |
parent | fae5b3c1339ef08fac98ca3ed0a52350350acd70 (diff) | |
download | sphinx-git-860fc27177370cc55d990584f45d39b3583ca378.tar.gz |
shutil.copytree doesn't have an ignore argument in Python 2.4
Diffstat (limited to 'tests/path.py')
-rw-r--r-- | tests/path.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/path.py b/tests/path.py index df96bce45..8e9afeaa8 100644 --- a/tests/path.py +++ b/tests/path.py @@ -88,7 +88,7 @@ class path(str): """ shutil.rmtree(self, ignore_errors=ignore_errors, onerror=onerror) - def copytree(self, destination, symlinks=False, ignore=None): + def copytree(self, destination, symlinks=False): """ Recursively copy a directory to the given `destination`. If the given `destination` does not exist it will be created. @@ -97,12 +97,8 @@ class path(str): If ``True`` symbolic links in the source tree result in symbolic links in the destination tree otherwise the contents of the files pointed to by the symbolic links are copied. - - :param ignore: - A callback which gets called with the path of the directory being - copied and a list of paths as returned by :func:`os.listdir`. """ - shutil.copytree(self, destination, symlinks=symlinks, ignore=ignore) + shutil.copytree(self, destination, symlinks=symlinks) def movetree(self, destination): """ |