Skip to content

Commit 62af91c

Browse files
committed
Line length
1 parent 2be822d commit 62af91c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/pathlib/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1186,7 +1186,8 @@ def move(self, target):
11861186

11871187
# Fall back to copy+delete.
11881188
ensure_distinct_paths(self, target)
1189-
for src, _dst in target._iter_copy_from(self, follow_symlinks=False, preserve_metadata=True):
1189+
for src, _dst in target._iter_copy_from(
1190+
self, follow_symlinks=False, preserve_metadata=True):
11901191
if src.info.is_symlink() or src.is_junction():
11911192
src.unlink()
11921193
elif src.info.is_dir():

Lib/pathlib/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ def _iter_copy_from(self, source, follow_symlinks=True):
417417
self.mkdir()
418418
for src in children:
419419
dst = self.joinpath(src.name)
420-
yield from dst._iter_copy_from(src, follow_symlinks=follow_symlinks)
420+
yield from dst._iter_copy_from(src, follow_symlinks)
421421
else:
422422
ensure_different_files(source, self)
423423
with magic_open(source, 'rb') as source_f:

0 commit comments

Comments
 (0)