Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Reindent long line
  • Loading branch information
jaraco committed Aug 9, 2015
1 parent 9324c3b commit 82ec3c8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions path.py
Expand Up @@ -1366,8 +1366,9 @@ def merge_tree(self, dst, *args, **kwargs):
"""
Copy entire contents of self to dst, overwriting existing
contents in dst with those in self.
If the additional keyword `update` (default: False) is true, `src` will only be
copied if `dst` does not exist, or if `dst` does exist but is older than `src`.
If the additional keyword `update` is True, `src` will only be
copied if `dst` does not exist, or if `dst` does exist but is
older than `src`.
"""
update = kwargs.pop('update', False)
_tempdir = Path(tempfile.gettempdir()) / str(hash(self))
Expand All @@ -1377,7 +1378,8 @@ def merge_tree(self, dst, *args, **kwargs):
symlinks = args[0]
else:
symlinks = kwargs.get('symlinks', False)
dir_util.copy_tree(_tempdir, dst, preserve_symlinks=int(symlinks), update=int(update))
dir_util.copy_tree(_tempdir, dst, preserve_symlinks=int(symlinks),
update=int(update))
finally:
_tempdir.rmtree()

Expand Down

0 comments on commit 82ec3c8

Please sign in to comment.