Commit 8b35e2c6 authored by MinchinWeb's avatar MinchinWeb

Sort imports

Sorted using `isort`. Sorted alphabetically, with sections for standard
library, third-party, and then internal imports.
parent cd126781
...@@ -14,8 +14,16 @@ ...@@ -14,8 +14,16 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
from datetime import date
import unittest import unittest
from datetime import date
from io import StringIO
from six import u
from test.TestCommand import CommandTest
from topydo.commands import AddCommand, ListCommand
from topydo.lib import TodoList
from topydo.lib.Config import config
# We're searching for 'mock' # We're searching for 'mock'
# pylint: disable=no-name-in-module # pylint: disable=no-name-in-module
...@@ -24,15 +32,6 @@ try: ...@@ -24,15 +32,6 @@ try:
except ImportError: except ImportError:
import mock import mock
from six import u
from io import StringIO
from topydo.commands import AddCommand
from topydo.commands import ListCommand
from test.TestCommand import CommandTest
from topydo.lib.Config import config
from topydo.lib import TodoList
class AddCommandTest(CommandTest): class AddCommandTest(CommandTest):
def setUp(self): def setUp(self):
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
import unittest import unittest
from topydo.commands.AppendCommand import AppendCommand
from test.TestCommand import CommandTest from test.TestCommand import CommandTest
from topydo.commands.AppendCommand import AppendCommand
from topydo.lib.TodoList import TodoList from topydo.lib.TodoList import TodoList
......
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
import unittest import unittest
from topydo.commands.ArchiveCommand import ArchiveCommand
from test.TestCommand import CommandTest
from test.Facilities import load_file_to_todolist from test.Facilities import load_file_to_todolist
from test.TestCommand import CommandTest
from topydo.commands.ArchiveCommand import ArchiveCommand
from topydo.lib.TodoList import TodoList from topydo.lib.TodoList import TodoList
......
...@@ -17,9 +17,10 @@ ...@@ -17,9 +17,10 @@
""" Tests for the colorscheme functionality. """ """ Tests for the colorscheme functionality. """
import unittest import unittest
from topydo.lib.Colors import Colors, NEUTRAL_COLOR
from topydo.lib.Config import config
from test.TestTopydo import TopydoTest from test.TestTopydo import TopydoTest
from topydo.lib.Colors import NEUTRAL_COLOR, Colors
from topydo.lib.Config import config
class ColorsTest(TopydoTest): class ColorsTest(TopydoTest):
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
import unittest import unittest
from topydo.lib.Utils import escape_ansi
from test.TestTopydo import TopydoTest from test.TestTopydo import TopydoTest
from topydo.lib.Utils import escape_ansi
class CommandTest(TopydoTest): class CommandTest(TopydoTest):
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
import unittest import unittest
from topydo.lib.Config import config
from test.TestTopydo import TopydoTest from test.TestTopydo import TopydoTest
from topydo.lib.Config import config
class ConfigTest(TopydoTest): class ConfigTest(TopydoTest):
......
...@@ -15,11 +15,12 @@ ...@@ -15,11 +15,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import unittest import unittest
from six import u from six import u
from test.TestCommand import CommandTest from test.TestCommand import CommandTest
from topydo.lib.Config import config
from topydo.commands.DeleteCommand import DeleteCommand from topydo.commands.DeleteCommand import DeleteCommand
from topydo.lib.Config import config
from topydo.lib.TodoList import TodoList from topydo.lib.TodoList import TodoList
from topydo.lib.TodoListBase import InvalidTodoException from topydo.lib.TodoListBase import InvalidTodoException
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
import unittest import unittest
from topydo.commands.DepCommand import DepCommand
from test.TestCommand import CommandTest from test.TestCommand import CommandTest
from topydo.commands.DepCommand import DepCommand
from topydo.lib.TodoList import TodoList from topydo.lib.TodoList import TodoList
......
...@@ -15,10 +15,11 @@ ...@@ -15,10 +15,11 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import unittest import unittest
from six import u from six import u
from topydo.commands.DepriCommand import DepriCommand
from test.TestCommand import CommandTest from test.TestCommand import CommandTest
from topydo.commands.DepriCommand import DepriCommand
from topydo.lib.TodoList import TodoList from topydo.lib.TodoList import TodoList
......
...@@ -14,12 +14,13 @@ ...@@ -14,12 +14,13 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
from datetime import date, timedelta
import unittest import unittest
from datetime import date, timedelta
from six import u from six import u
from topydo.commands.DoCommand import DoCommand
from test.TestCommand import CommandTest from test.TestCommand import CommandTest
from topydo.commands.DoCommand import DoCommand
from topydo.lib.TodoList import TodoList from topydo.lib.TodoList import TodoList
......
...@@ -14,8 +14,17 @@ ...@@ -14,8 +14,17 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
import unittest import unittest
from six import u
from test.TestCommand import CommandTest
from topydo.commands.EditCommand import EditCommand
from topydo.lib.Config import config
from topydo.lib.Todo import Todo
from topydo.lib.TodoList import TodoList
# We're searching for 'mock' # We're searching for 'mock'
# pylint: disable=no-name-in-module # pylint: disable=no-name-in-module
try: try:
...@@ -23,15 +32,6 @@ try: ...@@ -23,15 +32,6 @@ try:
except ImportError: except ImportError:
import mock import mock
from six import u
import os
from topydo.commands.EditCommand import EditCommand
from test.TestCommand import CommandTest
from topydo.lib.TodoList import TodoList
from topydo.lib.Todo import Todo
from topydo.lib.Config import config
class EditCommandTest(CommandTest): class EditCommandTest(CommandTest):
def setUp(self): def setUp(self):
......
...@@ -16,13 +16,14 @@ ...@@ -16,13 +16,14 @@
""" Tests for the filter functionality. """ """ Tests for the filter functionality. """
from datetime import date, timedelta
import unittest import unittest
from datetime import date, timedelta
from test.Facilities import (load_file, load_file_to_todolist,
todolist_to_string)
from test.TestTopydo import TopydoTest
from topydo.lib import Filter from topydo.lib import Filter
from test.Facilities import load_file, todolist_to_string, load_file_to_todolist
from topydo.lib.Todo import Todo from topydo.lib.Todo import Todo
from test.TestTopydo import TopydoTest
class FilterTest(TopydoTest): class FilterTest(TopydoTest):
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
import unittest import unittest
from topydo.lib.Graph import DirectedGraph
from test.TestTopydo import TopydoTest from test.TestTopydo import TopydoTest
from topydo.lib.Graph import DirectedGraph
class GraphTest(TopydoTest): class GraphTest(TopydoTest):
......
...@@ -14,13 +14,13 @@ ...@@ -14,13 +14,13 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
from datetime import date
import unittest import unittest
from datetime import date
from test.TestTopydo import TopydoTest
from topydo.lib.Config import config from topydo.lib.Config import config
from topydo.lib.Importance import importance from topydo.lib.Importance import importance
from topydo.lib.Todo import Todo from topydo.lib.Todo import Todo
from test.TestTopydo import TopydoTest
class ImportanceTest(TopydoTest): class ImportanceTest(TopydoTest):
......
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
import unittest import unittest
from test.TestTopydo import TopydoTest
from topydo.lib.JsonPrinter import JsonPrinter from topydo.lib.JsonPrinter import JsonPrinter
from topydo.lib.Todo import Todo from topydo.lib.Todo import Todo
from test.TestTopydo import TopydoTest
class JsonPrinterTest(TopydoTest): class JsonPrinterTest(TopydoTest):
......
...@@ -14,15 +14,16 @@ ...@@ -14,15 +14,16 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
from six import u
import codecs import codecs
import re import re
import unittest import unittest
from topydo.lib.Config import config from six import u
from topydo.commands.ListCommand import ListCommand
from test.TestCommand import CommandTest
from test.Facilities import load_file_to_todolist from test.Facilities import load_file_to_todolist
from test.TestCommand import CommandTest
from topydo.commands.ListCommand import ListCommand
from topydo.lib.Config import config
class ListCommandTest(CommandTest): class ListCommandTest(CommandTest):
......
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
import unittest import unittest
from topydo.commands.ListContextCommand import ListContextCommand
from test.TestCommand import CommandTest
from test.Facilities import load_file_to_todolist from test.Facilities import load_file_to_todolist
from test.TestCommand import CommandTest
from topydo.commands.ListContextCommand import ListContextCommand
class ListContextCommandTest(CommandTest): class ListContextCommandTest(CommandTest):
......
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
import unittest import unittest
from topydo.commands.ListProjectCommand import ListProjectCommand
from test.TestCommand import CommandTest
from test.Facilities import load_file_to_todolist from test.Facilities import load_file_to_todolist
from test.TestCommand import CommandTest
from topydo.commands.ListProjectCommand import ListProjectCommand
class ListProjectCommandTest(CommandTest): class ListProjectCommandTest(CommandTest):
......
...@@ -14,12 +14,13 @@ ...@@ -14,12 +14,13 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
from datetime import date, timedelta
import unittest import unittest
from datetime import date, timedelta
from six import u from six import u
from topydo.commands.PostponeCommand import PostponeCommand
from test.TestCommand import CommandTest from test.TestCommand import CommandTest
from topydo.commands.PostponeCommand import PostponeCommand
from topydo.lib.TodoList import TodoList from topydo.lib.TodoList import TodoList
......
...@@ -15,10 +15,11 @@ ...@@ -15,10 +15,11 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import unittest import unittest
from six import u from six import u
from topydo.commands.PriorityCommand import PriorityCommand
from test.TestCommand import CommandTest from test.TestCommand import CommandTest
from topydo.commands.PriorityCommand import PriorityCommand
from topydo.lib.TodoList import TodoList from topydo.lib.TodoList import TodoList
......
...@@ -14,13 +14,13 @@ ...@@ -14,13 +14,13 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
from datetime import date, timedelta
import unittest import unittest
from datetime import date, timedelta
from test.TestTopydo import TopydoTest
from topydo.lib.Config import config from topydo.lib.Config import config
from topydo.lib.Recurrence import advance_recurring_todo, NoRecurrenceException from topydo.lib.Recurrence import NoRecurrenceException, advance_recurring_todo
from topydo.lib.Todo import Todo from topydo.lib.Todo import Todo
from test.TestTopydo import TopydoTest
class RecurrenceTest(TopydoTest): class RecurrenceTest(TopydoTest):
......
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
from datetime import date, timedelta
import unittest import unittest
from datetime import date, timedelta
from topydo.lib.RelativeDate import relative_date_to_date
from test.TestTopydo import TopydoTest from test.TestTopydo import TopydoTest
from topydo.lib.RelativeDate import relative_date_to_date
class RelativeDateTester(TopydoTest): class RelativeDateTester(TopydoTest):
......
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
import unittest import unittest
from topydo.lib.Config import config
from topydo.commands.SortCommand import SortCommand
from test.TestCommand import CommandTest
from test.Facilities import load_file_to_todolist from test.Facilities import load_file_to_todolist
from test.TestCommand import CommandTest
from topydo.commands.SortCommand import SortCommand
from topydo.lib.Config import config
class SortCommandTest(CommandTest): class SortCommandTest(CommandTest):
......
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
import unittest import unittest
from test.Facilities import (load_file, load_file_to_todolist, print_view,
todolist_to_string)
from test.TestTopydo import TopydoTest
from topydo.lib.Config import config from topydo.lib.Config import config
from topydo.lib.Sorter import Sorter from topydo.lib.Sorter import Sorter
from test.Facilities import load_file, todolist_to_string, load_file_to_todolist, print_view
from test.TestTopydo import TopydoTest
class SorterTest(TopydoTest): class SorterTest(TopydoTest):
def sort_file(self, p_filename, p_filename_ref, p_sorter): def sort_file(self, p_filename, p_filename_ref, p_sorter):
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
import unittest import unittest
from topydo.commands.TagCommand import TagCommand
from test.TestCommand import CommandTest from test.TestCommand import CommandTest
from topydo.commands.TagCommand import TagCommand
from topydo.lib.TodoList import TodoList from topydo.lib.TodoList import TodoList
......
...@@ -14,11 +14,11 @@ ...@@ -14,11 +14,11 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
from datetime import date, timedelta
import unittest import unittest
from datetime import date, timedelta
from topydo.lib.Todo import Todo
from test.TestTopydo import TopydoTest from test.TestTopydo import TopydoTest
from topydo.lib.Todo import Todo
def today_date(): def today_date():
......
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
""" Tests for the TodoBase class. """ """ Tests for the TodoBase class. """
from datetime import date, timedelta
import re import re
import unittest import unittest
from datetime import date, timedelta
from topydo.lib.TodoBase import TodoBase
from test.TestTopydo import TopydoTest from test.TestTopydo import TopydoTest
from topydo.lib.TodoBase import TodoBase
class TodoBaseTester(TopydoTest): class TodoBaseTester(TopydoTest):
......
...@@ -14,9 +14,10 @@ ...@@ -14,9 +14,10 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
from six import u
import unittest import unittest
from six import u
from test.Facilities import load_file from test.Facilities import load_file
from test.TestTopydo import TopydoTest from test.TestTopydo import TopydoTest
......
...@@ -19,13 +19,12 @@ ...@@ -19,13 +19,12 @@
import re import re
import unittest import unittest
from test.TestTopydo import TopydoTest
from topydo.lib.Config import config from topydo.lib.Config import config
from topydo.lib.Todo import Todo from topydo.lib.Todo import Todo
from topydo.lib.TodoFile import TodoFile from topydo.lib.TodoFile import TodoFile
from topydo.lib.TodoListBase import InvalidTodoException
from topydo.lib.TodoList import TodoList from topydo.lib.TodoList import TodoList
from topydo.lib.TodoListBase import TodoListBase from topydo.lib.TodoListBase import InvalidTodoException, TodoListBase
from test.TestTopydo import TopydoTest
class TodoListTester(TopydoTest): class TodoListTester(TopydoTest):
......
...@@ -16,12 +16,12 @@ ...@@ -16,12 +16,12 @@
import unittest import unittest
from test.Facilities import load_file, print_view, todolist_to_string
from test.TestTopydo import TopydoTest
from topydo.lib import Filter from topydo.lib import Filter
from topydo.lib.Sorter import Sorter from topydo.lib.Sorter import Sorter
from test.Facilities import load_file, todolist_to_string, print_view
from topydo.lib.TodoFile import TodoFile from topydo.lib.TodoFile import TodoFile
from topydo.lib.TodoList import TodoList from topydo.lib.TodoList import TodoList
from test.TestTopydo import TopydoTest
class ViewTest(TopydoTest): class ViewTest(TopydoTest):
......
...@@ -23,9 +23,8 @@ import datetime ...@@ -23,9 +23,8 @@ import datetime
import re import re
from prompt_toolkit.completion import Completer, Completion from prompt_toolkit.completion import Completer, Completion
from topydo.lib.Config import config
from topydo.Commands import _SUBCOMMAND_MAP from topydo.Commands import _SUBCOMMAND_MAP
from topydo.lib.Config import config
from topydo.lib.RelativeDate import relative_date_to_date from topydo.lib.RelativeDate import relative_date_to_date
......
...@@ -16,10 +16,12 @@ ...@@ -16,10 +16,12 @@
""" Entry file for the Python todo.txt CLI. """ """ Entry file for the Python todo.txt CLI. """
import sys
import getopt import getopt
from topydo.cli.CLIApplicationBase import MAIN_OPTS, error import sys
from topydo.cli.CLI import CLIApplication from topydo.cli.CLI import CLIApplication
from topydo.cli.CLIApplicationBase import MAIN_OPTS, error
# enable color on windows CMD # enable color on windows CMD
if "win32" in sys.platform: if "win32" in sys.platform:
import colorama import colorama
......
...@@ -16,14 +16,14 @@ ...@@ -16,14 +16,14 @@
""" Provides the AddCommand class that implements the 'add' subcommand. """ """ Provides the AddCommand class that implements the 'add' subcommand. """
from datetime import date
import re
from sys import stdin
import codecs import codecs
import re
from datetime import date
from os.path import expanduser from os.path import expanduser
from sys import stdin
from topydo.lib.Config import config
from topydo.lib.Command import Command from topydo.lib.Command import Command
from topydo.lib.Config import config
from topydo.lib.PrettyPrinterFilter import PrettyPrinterNumbers from topydo.lib.PrettyPrinterFilter import PrettyPrinterNumbers
from topydo.lib.RelativeDate import relative_date_to_date from topydo.lib.RelativeDate import relative_date_to_date
from topydo.lib.TodoListBase import InvalidTodoException from topydo.lib.TodoListBase import InvalidTodoException
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
from topydo.lib import Filter
from topydo.lib.Command import Command, InvalidCommandArgument from topydo.lib.Command import Command, InvalidCommandArgument
from topydo.lib.Config import config from topydo.lib.Config import config
from topydo.lib import Filter
from topydo.lib.PrettyPrinter import pretty_printer_factory from topydo.lib.PrettyPrinter import pretty_printer_factory
from topydo.lib.Sorter import Sorter from topydo.lib.Sorter import Sorter
from topydo.lib.TodoListBase import InvalidTodoException from topydo.lib.TodoListBase import InvalidTodoException
......
...@@ -19,7 +19,7 @@ from datetime import date ...@@ -19,7 +19,7 @@ from datetime import date
from topydo.lib.DCommand import DCommand from topydo.lib.DCommand import DCommand
from topydo.lib.PrettyPrinter import PrettyPrinter from topydo.lib.PrettyPrinter import PrettyPrinter
from topydo.lib.PrettyPrinterFilter import PrettyPrinterNumbers from topydo.lib.PrettyPrinterFilter import PrettyPrinterNumbers
from topydo.lib.Recurrence import advance_recurring_todo, NoRecurrenceException from topydo.lib.Recurrence import NoRecurrenceException, advance_recurring_todo
from topydo.lib.Utils import date_string_to_date from topydo.lib.Utils import date_string_to_date
......
...@@ -15,17 +15,17 @@ ...@@ -15,17 +15,17 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import os import os
from subprocess import call, check_call, CalledProcessError
import tempfile import tempfile
from subprocess import CalledProcessError, call, check_call
from six import u from six import u
from topydo.lib.Config import config
from topydo.lib.ExpressionCommand import ExpressionCommand from topydo.lib.ExpressionCommand import ExpressionCommand
from topydo.lib.MultiCommand import MultiCommand from topydo.lib.MultiCommand import MultiCommand
from topydo.lib.Config import config from topydo.lib.PrettyPrinterFilter import PrettyPrinterNumbers
from topydo.lib.Todo import Todo from topydo.lib.Todo import Todo
from topydo.lib.TodoList import TodoList from topydo.lib.TodoList import TodoList
from topydo.lib.PrettyPrinterFilter import PrettyPrinterNumbers
# the true and only editor # the true and only editor
DEFAULT_EDITOR = 'vi' DEFAULT_EDITOR = 'vi'
......
...@@ -14,15 +14,13 @@ ...@@ -14,15 +14,13 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
from topydo.lib.ExpressionCommand import ExpressionCommand
from topydo.lib.Config import config from topydo.lib.Config import config
from topydo.lib.PrettyPrinter import pretty_printer_factory from topydo.lib.ExpressionCommand import ExpressionCommand
from topydo.lib.PrettyPrinterFilter import (
PrettyPrinterIndentFilter,
PrettyPrinterHideTagFilter
)
from topydo.lib.IcalPrinter import IcalPrinter from topydo.lib.IcalPrinter import IcalPrinter
from topydo.lib.JsonPrinter import JsonPrinter from topydo.lib.JsonPrinter import JsonPrinter
from topydo.lib.PrettyPrinter import pretty_printer_factory
from topydo.lib.PrettyPrinterFilter import (PrettyPrinterHideTagFilter,
PrettyPrinterIndentFilter)
class ListCommand(ExpressionCommand): class ListCommand(ExpressionCommand):
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
from datetime import date, timedelta from datetime import date, timedelta
from topydo.lib.MultiCommand import MultiCommand
from topydo.lib.Config import config from topydo.lib.Config import config
from topydo.lib.MultiCommand import MultiCommand
from topydo.lib.PrettyPrinterFilter import PrettyPrinterNumbers from topydo.lib.PrettyPrinterFilter import PrettyPrinterNumbers
from topydo.lib.RelativeDate import relative_date_to_date from topydo.lib.RelativeDate import relative_date_to_date
from topydo.lib.Utils import date_string_to_date from topydo.lib.Utils import date_string_to_date
......
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
import re import re
from topydo.lib import Filter
from topydo.lib.Command import Command from topydo.lib.Command import Command
from topydo.lib.Config import config from topydo.lib.Config import config
from topydo.lib import Filter
from topydo.lib.Sorter import Sorter from topydo.lib.Sorter import Sorter
from topydo.lib.View import View from topydo.lib.View import View
......
...@@ -19,9 +19,9 @@ Provides a printer that transforms a list of Todo items to an iCalendar ...@@ -19,9 +19,9 @@ Provides a printer that transforms a list of Todo items to an iCalendar
file according to RFC 2445. file according to RFC 2445.
""" """
from datetime import datetime, time
import random import random
import string import string
from datetime import datetime, time
from topydo.lib.PrettyPrinter import Printer from topydo.lib.PrettyPrinter import Printer
......
...@@ -14,10 +14,8 @@ ...@@ -14,10 +14,8 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
from topydo.lib.PrettyPrinterFilter import ( from topydo.lib.PrettyPrinterFilter import (PrettyPrinterColorFilter,
PrettyPrinterColorFilter, PrettyPrinterNumbers)
PrettyPrinterNumbers
)
class Printer(object): class Printer(object):
......
...@@ -17,10 +17,11 @@ ...@@ -17,10 +17,11 @@
""" Provides filters used for pretty printing. """ """ Provides filters used for pretty printing. """
import re import re
from six import u from six import u
from topydo.lib.Colors import NEUTRAL_COLOR, Colors
from topydo.lib.Config import config from topydo.lib.Config import config
from topydo.lib.Colors import Colors, NEUTRAL_COLOR
class PrettyPrinterFilter(object): class PrettyPrinterFilter(object):
......
...@@ -16,9 +16,9 @@ ...@@ -16,9 +16,9 @@
""" This module deals with relative dates (2d, 5y, Monday, today, etc.) """ """ This module deals with relative dates (2d, 5y, Monday, today, etc.) """
from datetime import date, timedelta
import calendar import calendar
import re import re
from datetime import date, timedelta
def _add_months(p_sourcedate, p_months): def _add_months(p_sourcedate, p_months):
......
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
""" This module provides functionality to sort lists with todo items. """ """ This module provides functionality to sort lists with todo items. """
from datetime import date
import re import re
from datetime import date
from topydo.lib.Importance import importance, average_importance from topydo.lib.Importance import average_importance, importance
def is_priority_field(p_field): def is_priority_field(p_field):
......
...@@ -18,8 +18,9 @@ ...@@ -18,8 +18,9 @@
This module contains the class that represents a single todo item. This module contains the class that represents a single todo item.
""" """
from datetime import date
import re import re
from datetime import date
from six import u from six import u
from topydo.lib.TodoParser import parse_line from topydo.lib.TodoParser import parse_line
......
...@@ -18,12 +18,13 @@ ...@@ -18,12 +18,13 @@
A list of todo items. A list of todo items.
""" """
from datetime import date
import re import re
from datetime import date
from six import text_type from six import text_type
from topydo.lib.Config import config
from topydo.lib import Filter from topydo.lib import Filter
from topydo.lib.Config import config
from topydo.lib.HashListValues import hash_list_values from topydo.lib.HashListValues import hash_list_values
from topydo.lib.PrettyPrinter import PrettyPrinter from topydo.lib.PrettyPrinter import PrettyPrinter
from topydo.lib.Todo import Todo from topydo.lib.Todo import Todo
......
...@@ -18,8 +18,8 @@ ...@@ -18,8 +18,8 @@
Various utility functions. Various utility functions.
""" """
from datetime import date
import re import re
from datetime import date
def date_string_to_date(p_date): def date_string_to_date(p_date):
......
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