Make property setup stuff in FileManager.__init__() more readable

This commit is contained in:
Kristóf Tóth 2018-03-15 12:04:39 +01:00
parent 4b8b71d967
commit 0ef502a680

View File

@ -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