diff --git a/rbackup/struct/hierarchy.py b/rbackup/struct/hierarchy.py index 9fd9f66..4f9dd72 100644 --- a/rbackup/struct/hierarchy.py +++ b/rbackup/struct/hierarchy.py @@ -97,7 +97,7 @@ class Hierarchy(PathLike): # noinspection PyUnresolvedReferences if not shutil.rmtree.avoids_symlink_attacks: syslog.error( - "shutil cannot avoid symlink attacks on this platform. Ignoring." + "shutil cannot avoid symlink attacks on this platform. Ignoring." ) return diff --git a/tests/test_hierarchy.py b/tests/test_hierarchy.py index a53ec55..0f49f97 100644 --- a/tests/test_hierarchy.py +++ b/tests/test_hierarchy.py @@ -74,15 +74,15 @@ class TestHierarchyCleanup(unittest.TestCase): def setUp(self): self.patched_path = patch.multiple( - Path, - exists=DEFAULT, - mkdir=DEFAULT, - symlink_to=DEFAULT, - touch=DEFAULT, - unlink=DEFAULT, + Path, + exists=DEFAULT, + mkdir=DEFAULT, + symlink_to=DEFAULT, + touch=DEFAULT, + unlink=DEFAULT, ) self.patched_metadata = patch.multiple( - Hierarchy, read_metadata=DEFAULT, write_metadata=DEFAULT + Hierarchy, read_metadata=DEFAULT, write_metadata=DEFAULT ) self.patched_shutil = patch.multiple(f"{TESTING_MODULE}.shutil", rmtree=DEFAULT)