Commit b9b1038f authored by MinchinWeb's avatar MinchinWeb

Fix PEP8 E127

continuation line over-indented for visual indent
parent 040534b6
......@@ -33,7 +33,7 @@ class TodoListTester(TopydoTest):
self.todofile = TodoFile('test/data/TodoListTest.txt')
lines = [line for line in self.todofile.read() \
if re.search(r'\S', line)]
if re.search(r'\S', line)]
self.text = ''.join(lines)
self.todolist = TodoListBase(lines)
......
......@@ -91,8 +91,8 @@ class PromptApplication(CLIApplicationBase):
try:
user_input = prompt(u'topydo> ', history=history,
completer=self.completer,
complete_while_typing=False).split()
completer=self.completer,
complete_while_typing=False).split()
except (EOFError, KeyboardInterrupt):
sys.exit(0)
......
......@@ -85,7 +85,7 @@ class EditCommand(MultiCommand):
return 1
except(OSError):
self.error('There is no such editor as: ' + editor + '. '
'Check your $EDITOR and/or $PATH')
'Check your $EDITOR and/or $PATH')
def _catch_todo_errors(self):
errors = []
......@@ -117,7 +117,7 @@ class EditCommand(MultiCommand):
self.out(self.printer.print_todo(todo))
else:
self.error('Number of edited todos is not equal to '
'number of supplied todo IDs.')
'number of supplied todo IDs.')
else:
self.error(self.usage())
......
......@@ -130,8 +130,8 @@ class DirectedGraph(object):
"""
Returns True iff the given node has no incoming or outgoing edges.
"""
return len(self.incoming_neighbors(p_id)) == 0 \
and len(self.outgoing_neighbors(p_id)) == 0
return(len(self.incoming_neighbors(p_id)) == 0
and len(self.outgoing_neighbors(p_id)) == 0)
def has_edge(self, p_from, p_to):
""" Returns True when the graph has the given edge. """
......
......@@ -69,7 +69,7 @@ class TodoBase(object):
"""
result = [t for t in self.tag_values(p_key) \
if p_value == "" or t == p_value]
if p_value == "" or t == p_value]
return len(result) > 0
def add_tag(self, p_key, p_value):
......
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