Skip to content

Commit d5713fc

Browse files
mashabowwillmcgugan
authored andcommitted
Fix docstrings in copy.py (#62)
1 parent 1f8c026 commit d5713fc

1 file changed

Lines changed: 15 additions & 17 deletions

File tree

fs/copy.py

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ def copy_fs(src_fs, dst_fs, walker=None, on_copy=None):
2121
Copy the contents of one filesystem to another.
2222
2323
:param src_fs: Source filesystem.
24-
:type src_fs: :type src_fs: FS URL or instance
25-
:param src_path: A path to a directory on ``src_fs``.
26-
:type src_path: str
24+
:type src_fs: FS URL or instance
2725
:param dst_fs: Destination filesystem.
2826
:type dst_fs: FS URL or instance
2927
:param walker: A walker object that will be used to scan for files
@@ -48,9 +46,7 @@ def copy_fs_if_newer(src_fs, dst_fs, walker=None, on_copy=None):
4846
always executed.
4947
5048
:param src_fs: Source filesystem.
51-
:type src_fs: :type src_fs: FS URL or instance
52-
:param src_path: A path to a directory on ``src_fs``.
53-
:type src_path: str
49+
:type src_fs: FS URL or instance
5450
:param dst_fs: Destination filesystem.
5551
:type dst_fs: FS URL or instance
5652
:param walker: A walker object that will be used to scan for files
@@ -68,17 +64,19 @@ def copy_fs_if_newer(src_fs, dst_fs, walker=None, on_copy=None):
6864

6965
def _source_is_newer(src_fs, src_path, dst_fs, dst_path):
7066
"""
71-
Determine if source file is newer than destination file.
72-
73-
:param src_fs: Source filesystem.
74-
:type src_fs: :type src_fs: FS URL or instance
75-
:param src_path: A path to a directory on ``src_fs``.
76-
:type src_path: str
77-
:param dst_fs: Destination filesystem.
78-
:type dst_fs: FS URL or instance
79-
:returns: True if source file is newer than destination file or
80-
file modification time cannot be determined. False otherwise.
81-
"""
67+
Determine if source file is newer than destination file.
68+
69+
:param src_fs: Source filesystem.
70+
:type src_fs: FS URL or instance
71+
:param src_path: Path to a file on ``src_fs``.
72+
:type src_path: str
73+
:param dst_fs: Destination filesystem.
74+
:type dst_fs: FS URL or instance
75+
:param dst_path: Path to a file on ``dst_fs``.
76+
:type dst_path: str
77+
:returns: True if source file is newer than destination file or
78+
file modification time cannot be determined. False otherwise.
79+
"""
8280
try:
8381
if dst_fs.exists(dst_path):
8482
namespace = ('details', 'modified')

0 commit comments

Comments
 (0)