From 0ef502a680348188418f90a6ae99a752a2f55305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Thu, 15 Mar 2018 12:04:39 +0100 Subject: [PATCH] Make property setup stuff in FileManager.__init__() more readable --- lib/tfw/components/source_code_event_handler.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/tfw/components/source_code_event_handler.py b/lib/tfw/components/source_code_event_handler.py index f700324..1230aa6 100644 --- a/lib/tfw/components/source_code_event_handler.py +++ b/lib/tfw/components/source_code_event_handler.py @@ -10,10 +10,8 @@ log = logging.getLogger(__name__) class FileManager: def __init__(self, working_directory, selected_file=None, exclude=()): - self._exclude = None - self.exclude = exclude - self._workdir = None - self.workdir = working_directory + self._exclude, self.exclude = None, exclude + self._workdir, self.workdir = None, working_directory self.filename = selected_file or self.files[0] @property