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

pep257 refactoring

This commit is contained in:
deadc0de6
2018-06-02 14:46:44 +02:00
parent 6b89c3d5b8
commit 48c465f5f3
7 changed files with 59 additions and 38 deletions

View File

@@ -31,6 +31,7 @@ class Cmd:
class Action(Cmd):
def execute(self):
"""execute the action in the shell"""
ret = 1
self.log.sub('executing \"{}\"'.format(self.action))
try:
@@ -43,9 +44,9 @@ class Action(Cmd):
class Transform(Cmd):
def transform(self, arg0, arg1):
'''execute transformation with {0} and {1}
"""execute transformation with {0} and {1}
where {0} is the file to transform and
{1} is the result file'''
{1} is the result file"""
if os.path.exists(arg1):
msg = 'transformation destination exists: {}'
self.log.warn(msg.format(arg1))