1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-05 21:23:02 +00:00

Conform to PEP8

Though [it is generally recommended to have a trailing
newline](https://stackoverflow.com/questions/2287967/why-is-it-recommended-to-have-empty-line-in-the-end-of-file)
This commit is contained in:
Marcel Robitaille
2018-12-29 15:50:06 -04:00
parent 67be049407
commit 0cc5ec9e13
4 changed files with 5 additions and 6 deletions

View File

@@ -41,4 +41,3 @@ class Dotfile:
def __hash__(self):
return hash(self.dst) ^ hash(self.src) ^ hash(self.key)

View File

@@ -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

View File

@@ -5,4 +5,3 @@ class LinkTypes(IntEnum):
NOLINK = 0
PARENTS = 1
CHILDREN = 2

View File

@@ -115,4 +115,3 @@ def strip_home(path):
def flatten(a):
"""flatten list"""
return functools.reduce(operator.iconcat, a, [])