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