Commit 1176abbf authored by Bram Schoenmakers's avatar Bram Schoenmakers

Removed some unused stuff.

parent a021c148
......@@ -87,7 +87,7 @@ class TopydoCompleter(Completer):
yield Completion(reldate, -len(value), display_meta=to_absolute(reldate))
def get_completions(self, p_document, p_complete_event):
def get_completions(self, p_document, _):
# include all characters except whitespaces (for + and @)
word_before_cursor = p_document.get_word_before_cursor(True)
is_first_word = not re.match(r'\s*\S+\s', p_document.current_line_before_cursor)
......
......@@ -27,7 +27,7 @@ def main():
args = sys.argv[1:]
try:
opts, args = getopt.getopt(args, MAIN_OPTS)
_, args = getopt.getopt(args, MAIN_OPTS)
except getopt.GetoptError as e:
error(str(e))
sys.exit(1)
......
......@@ -19,7 +19,6 @@ import re
from topydo.lib.MultiCommand import MultiCommand
from topydo.lib.PrettyPrinter import PrettyPrinter
from topydo.lib.PrettyPrinterFilter import PrettyPrinterNumbers
from topydo.lib.TodoListBase import InvalidTodoException
class DCommand(MultiCommand):
"""
......@@ -110,7 +109,7 @@ class DCommand(MultiCommand):
return [todo for todo in self.todolist.todos()[:self.length]
if not self._uncompleted_children(todo) and todo.is_active()]
def condition(self, p_todo):
def condition(self, _):
"""
An additional condition whether execute_specific should be executed.
"""
......
......@@ -21,7 +21,6 @@ from topydo.lib.Command import InvalidCommandArgument
from topydo.lib.Config import config
from topydo.lib.PrettyPrinterFilter import PrettyPrinterNumbers
from topydo.lib.RelativeDate import relative_date_to_date
from topydo.lib.TodoListBase import InvalidTodoException
from topydo.lib.Utils import date_string_to_date
class PostponeCommand(MultiCommand):
......
......@@ -16,7 +16,6 @@
from topydo.lib.MultiCommand import MultiCommand
from topydo.lib.PrettyPrinterFilter import PrettyPrinterNumbers
from topydo.lib.TodoListBase import InvalidTodoException
from topydo.lib.Utils import is_valid_priority
class PriorityCommand(MultiCommand):
......
......@@ -16,7 +16,6 @@
import re
from topydo.lib.Config import config
from topydo.lib.RelativeDate import relative_date_to_date
from topydo.lib.Utils import date_string_to_date
......@@ -29,7 +28,7 @@ class Filter(object):
return [t for t in p_todos if self.match(t)]
def match(self, p_todo):
def match(self, _):
""" Default match value. """
return True
......
......@@ -20,7 +20,6 @@ A list of todo items.
from topydo.lib.Config import config
from topydo.lib.Graph import DirectedGraph
from topydo.lib.PrettyPrinter import PrettyPrinter
from topydo.lib.TodoListBase import TodoListBase
class TodoList(TodoListBase):
......
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