mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-06 19:30:40 +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):
|
def __hash__(self):
|
||||||
return hash(self.dst) ^ hash(self.src) ^ hash(self.key)
|
return hash(self.dst) ^ hash(self.src) ^ hash(self.key)
|
||||||
|
|
||||||
|
|||||||
@@ -94,8 +94,11 @@ class Installer:
|
|||||||
os.makedirs(dst)
|
os.makedirs(dst)
|
||||||
|
|
||||||
if os.path.isfile(dst):
|
if os.path.isfile(dst):
|
||||||
msg = 'Remove regular file "{}" and replace with empty directory?' \
|
msg = ''.join([
|
||||||
.format(dst)
|
'Remove regular file "{}" and ',
|
||||||
|
'replace with empty directory?',
|
||||||
|
]).format(dst)
|
||||||
|
|
||||||
if self.safe and not self.log.ask(msg):
|
if self.safe and not self.log.ask(msg):
|
||||||
msg = 'ignoring "{}", nothing installed'
|
msg = 'ignoring "{}", nothing installed'
|
||||||
self.log.warn(msg.format(dst))
|
self.log.warn(msg.format(dst))
|
||||||
@@ -344,4 +347,3 @@ class Installer:
|
|||||||
self.comparing = False
|
self.comparing = False
|
||||||
self.create = createsaved
|
self.create = createsaved
|
||||||
return ret, tmpdst
|
return ret, tmpdst
|
||||||
|
|
||||||
|
|||||||
@@ -5,4 +5,3 @@ class LinkTypes(IntEnum):
|
|||||||
NOLINK = 0
|
NOLINK = 0
|
||||||
PARENTS = 1
|
PARENTS = 1
|
||||||
CHILDREN = 2
|
CHILDREN = 2
|
||||||
|
|
||||||
|
|||||||
@@ -115,4 +115,3 @@ def strip_home(path):
|
|||||||
def flatten(a):
|
def flatten(a):
|
||||||
"""flatten list"""
|
"""flatten list"""
|
||||||
return functools.reduce(operator.iconcat, a, [])
|
return functools.reduce(operator.iconcat, a, [])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user