Make smart futures avoid polling.
[python_utils.git] / directory_filter.py
index d275cf24d4e23a6be64fe4073ca4b3860c83ea3c..d14dce7c6eec912e2b2c5b07ebe9b6ef4dfcf716 100644 (file)
@@ -6,14 +6,13 @@ from typing import Any, Optional
 
 
 class DirectoryFileFilter(object):
-    """A predicate that will return False if when a proposed file's
+    """A predicate that will return False if when a proposed file's
     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