Satisfy pylint and add todo

This commit is contained in:
Joscha 2020-04-24 18:26:28 +00:00
parent 292e516297
commit 7f53543324
2 changed files with 5 additions and 2 deletions

View File

@ -15,6 +15,8 @@ from .utils import PrettyLogger, prompt_yes_no
LOGGER = logging.getLogger(__name__) LOGGER = logging.getLogger(__name__)
PRETTY = PrettyLogger(LOGGER) PRETTY = PrettyLogger(LOGGER)
# TODO prevent overwriting an already marked file
class FileAcceptException(Exception): class FileAcceptException(Exception):
"""An exception while accepting a file.""" """An exception while accepting a file."""

View File

@ -13,7 +13,7 @@ from .ilias import (IliasAuthenticator, IliasCrawler, IliasDirectoryFilter,
from .location import Location from .location import Location
from .organizer import Organizer from .organizer import Organizer
from .tmp_dir import TmpDir from .tmp_dir import TmpDir
from .transform import Transform, Transformable, apply_transform from .transform import TF, Transform, apply_transform
from .utils import PrettyLogger from .utils import PrettyLogger
# TODO save known-good cookies as soon as possible # TODO save known-good cookies as soon as possible
@ -41,7 +41,8 @@ class Pferd(Location):
self._tmp_dir = TmpDir(self.resolve(tmp_dir)) self._tmp_dir = TmpDir(self.resolve(tmp_dir))
self._test_run = test_run self._test_run = test_run
def _print_transformables(self, transformables: List[Transformable]) -> None: @staticmethod
def _print_transformables(transformables: List[TF]) -> None:
LOGGER.info("") LOGGER.info("")
LOGGER.info("Results of the test run:") LOGGER.info("Results of the test run:")
for transformable in transformables: for transformable in transformables: