X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=directory_filter.py;h=5504609ad6d0e92257052370b4132e353c166338;hb=1574e8a3a8982fab9278ad534f9427d464e4bffb;hp=d275cf24d4e23a6be64fe4073ca4b3860c83ea3c;hpb=0e451d3b3bf899b3d9ac0c38e3c3cd9d9be170ba;p=python_utils.git diff --git a/directory_filter.py b/directory_filter.py index d275cf2..5504609 100644 --- a/directory_filter.py +++ b/directory_filter.py @@ -10,10 +10,9 @@ class DirectoryFileFilter(object): content to-be-written is identical to the contents of the file; skip the write. """ - def __init__(self, directory: str): - import file_utils super().__init__() + import file_utils if not file_utils.does_directory_exist(directory): raise ValueError(directory) self.directory = directory