From 7f53543324b345692cb4232e49c2b79bc6aa5004 Mon Sep 17 00:00:00 2001 From: Joscha Date: Fri, 24 Apr 2020 18:26:28 +0000 Subject: [PATCH] Satisfy pylint and add todo --- PFERD/organizer.py | 2 ++ PFERD/pferd.py | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/PFERD/organizer.py b/PFERD/organizer.py index c624d23..e5b2c10 100644 --- a/PFERD/organizer.py +++ b/PFERD/organizer.py @@ -15,6 +15,8 @@ from .utils import PrettyLogger, prompt_yes_no LOGGER = logging.getLogger(__name__) PRETTY = PrettyLogger(LOGGER) +# TODO prevent overwriting an already marked file + class FileAcceptException(Exception): """An exception while accepting a file.""" diff --git a/PFERD/pferd.py b/PFERD/pferd.py index 259e961..c8b6701 100644 --- a/PFERD/pferd.py +++ b/PFERD/pferd.py @@ -13,7 +13,7 @@ from .ilias import (IliasAuthenticator, IliasCrawler, IliasDirectoryFilter, from .location import Location from .organizer import Organizer from .tmp_dir import TmpDir -from .transform import Transform, Transformable, apply_transform +from .transform import TF, Transform, apply_transform from .utils import PrettyLogger # 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._test_run = test_run - def _print_transformables(self, transformables: List[Transformable]) -> None: + @staticmethod + def _print_transformables(transformables: List[TF]) -> None: LOGGER.info("") LOGGER.info("Results of the test run:") for transformable in transformables: