@@ -1113,7 +1113,7 @@ def _iter_copy_from(self, source, follow_symlinks=True,
11131113 preserve_metadata = False ):
11141114 """
11151115 Recursively copy the given path to this path. Yields a
1116- (target, source ) tuple after each path is copied.
1116+ (source, target ) tuple after each path is copied.
11171117 """
11181118 if not follow_symlinks and source .info .is_symlink ():
11191119 self ._copy_from_symlink (source , preserve_metadata )
@@ -1128,7 +1128,7 @@ def _iter_copy_from(self, source, follow_symlinks=True,
11281128 copy_info (source .info , self )
11291129 else :
11301130 self ._copy_from_file (source , preserve_metadata )
1131- yield self , source
1131+ yield source , self
11321132
11331133 def _copy_from_file (self , source , preserve_metadata = False ):
11341134 ensure_different_files (source , self )
@@ -1186,7 +1186,7 @@ def move(self, target):
11861186
11871187 # Fall back to copy+delete.
11881188 ensure_distinct_paths (self , target )
1189- for _dst , src in target ._iter_copy_from (self , follow_symlinks = False , preserve_metadata = True ):
1189+ for src , _dst in target ._iter_copy_from (self , follow_symlinks = False , preserve_metadata = True ):
11901190 if src .info .is_symlink () or src .is_junction ():
11911191 src .unlink ()
11921192 elif src .info .is_dir ():
0 commit comments