From 2712eb536840d20c2e6e3cc333898bea3147e109 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Mon, 13 Nov 2023 23:28:13 +0100 Subject: [PATCH] linting --- dotdrop/updater.py | 6 +++--- dotdrop/utils.py | 9 +++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/dotdrop/updater.py b/dotdrop/updater.py index 149d352..4119768 100644 --- a/dotdrop/updater.py +++ b/dotdrop/updater.py @@ -290,9 +290,9 @@ class Updater: cpied_cnt = 0 try: ign_func = self._ignore(ignores) - cpied_cnt= copytree_with_ign(exist, new, - ignore_func=ign_func, - debug=self.debug) + cpied_cnt = copytree_with_ign(exist, new, + ignore_func=ign_func, + debug=self.debug) except OSError as exc: msg = f'error copying dir {exist}' self.log.err(f'{msg}: {exc}') diff --git a/dotdrop/utils.py b/dotdrop/utils.py index 8d3ed67..2704dbb 100644 --- a/dotdrop/utils.py +++ b/dotdrop/utils.py @@ -356,12 +356,17 @@ def copytree_with_ign(src, dst, ignore_func=None, debug=False): LOG.dbg(f'mkdir \"{dstf}\"', force=True) os.makedirs(dstf, exist_ok=True) - copied_count += copytree_with_ign(srcf, dstf, ignore_func=ignore_func) + copied_count += copytree_with_ign(srcf, + dstf, + ignore_func=ignore_func) else: if debug: LOG.dbg(f'copytree, copy file \"{src}\" to \"{dst}\"', force=True) - copied_count += _cp(srcf, dstf, ignore_func=ignore_func, debug=debug) + copied_count += _cp(srcf, + dstf, + ignore_func=ignore_func, + debug=debug) return copied_count