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): ...@@ -55,9 +55,9 @@ class EditCommand(MultiCommand, ListCommand):
return f return f
def _todos_from_temp(self, temp_file): def _todos_from_temp(self, p_temp_file):
temp_file.seek(0) p_temp_file.seek(0)
todos = temp_file.read().splitlines() todos = p_temp_file.read().splitlines()
todo_objs = [] todo_objs = []
for todo in todos: for todo in todos:
...@@ -65,10 +65,10 @@ class EditCommand(MultiCommand, ListCommand): ...@@ -65,10 +65,10 @@ class EditCommand(MultiCommand, ListCommand):
return todo_objs return todo_objs
def _open_in_editor(self, temp_file, editor): def _open_in_editor(self, p_temp_file, p_editor):
try: try:
return check_call([editor, temp_file.name]) return check_call([p_editor, p_temp_file.name])
except(CalledProcessError): except CalledProcessError:
self.error('Something went wrong in the editor...') self.error('Something went wrong in the editor...')
return 1 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