diff --git a/dotdrop/dotfile.py b/dotdrop/dotfile.py index bcd3329..f758de7 100644 --- a/dotdrop/dotfile.py +++ b/dotdrop/dotfile.py @@ -41,4 +41,3 @@ class Dotfile: def __hash__(self): return hash(self.dst) ^ hash(self.src) ^ hash(self.key) - diff --git a/dotdrop/installer.py b/dotdrop/installer.py index 4a0a42e..0c72e34 100644 --- a/dotdrop/installer.py +++ b/dotdrop/installer.py @@ -94,8 +94,11 @@ class Installer: os.makedirs(dst) if os.path.isfile(dst): - msg = 'Remove regular file "{}" and replace with empty directory?' \ - .format(dst) + msg = ''.join([ + 'Remove regular file "{}" and ', + 'replace with empty directory?', + ]).format(dst) + if self.safe and not self.log.ask(msg): msg = 'ignoring "{}", nothing installed' self.log.warn(msg.format(dst)) @@ -344,4 +347,3 @@ class Installer: self.comparing = False self.create = createsaved return ret, tmpdst - diff --git a/dotdrop/linktypes.py b/dotdrop/linktypes.py index bd943a8..2e911a1 100644 --- a/dotdrop/linktypes.py +++ b/dotdrop/linktypes.py @@ -5,4 +5,3 @@ class LinkTypes(IntEnum): NOLINK = 0 PARENTS = 1 CHILDREN = 2 - diff --git a/dotdrop/utils.py b/dotdrop/utils.py index 77588f4..e4afcad 100644 --- a/dotdrop/utils.py +++ b/dotdrop/utils.py @@ -115,4 +115,3 @@ def strip_home(path): def flatten(a): """flatten list""" return functools.reduce(operator.iconcat, a, []) -