fix pep8 issues

pull/6/head
deadc0de6 7 years ago
parent dbd3f2bc83
commit 8fb3459ce0

@ -144,7 +144,8 @@ def cmd_rename(args, noder, catalog, top):
node = next(filter(lambda x: x.name == storage, top.children))
node.name = new
if catalog.save(top):
Logger.info('Storage \"{}\" renamed to \"{}\"'.format(storage, new))
m = 'Storage \"{}\" renamed to \"{}\"'.format(storage, new)
Logger.info(m)
else:
Logger.err('Storage named \"{}\" does not exist'.format(storage))
return top

@ -57,7 +57,7 @@ def ask(question):
def edit(string):
''' edit the information with the default EDITOR '''
string = string.encode('utf-8')
EDITOR = os.environ.get('EDITOR','vim')
EDITOR = os.environ.get('EDITOR', 'vim')
with tempfile.NamedTemporaryFile(prefix='catcli', suffix='.tmp') as f:
f.write(string)
f.flush()

Loading…
Cancel
Save