Commit 8542cffd authored by Bram Schoenmakers's avatar Bram Schoenmakers

Minor pylint and style adjustment.

parent 7104428d
......@@ -55,9 +55,9 @@ class EditCommand(MultiCommand, ListCommand):
return f
def _todos_from_temp(self, temp_file):
temp_file.seek(0)
todos = temp_file.read().splitlines()
def _todos_from_temp(self, p_temp_file):
p_temp_file.seek(0)
todos = p_temp_file.read().splitlines()
todo_objs = []
for todo in todos:
......@@ -65,10 +65,10 @@ class EditCommand(MultiCommand, ListCommand):
return todo_objs
def _open_in_editor(self, temp_file, editor):
def _open_in_editor(self, p_temp_file, p_editor):
try:
return check_call([editor, temp_file.name])
except(CalledProcessError):
return check_call([p_editor, p_temp_file.name])
except CalledProcessError:
self.error('Something went wrong in the editor...')
return 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment