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:
@@ -41,4 +41,3 @@ class Dotfile:
|
||||
|
||||
def __hash__(self):
|
||||
return hash(self.dst) ^ hash(self.src) ^ hash(self.key)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -5,4 +5,3 @@ class LinkTypes(IntEnum):
|
||||
NOLINK = 0
|
||||
PARENTS = 1
|
||||
CHILDREN = 2
|
||||
|
||||
|
||||
@@ -115,4 +115,3 @@ def strip_home(path):
|
||||
def flatten(a):
|
||||
"""flatten list"""
|
||||
return functools.reduce(operator.iconcat, a, [])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user