1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2026-01-22 14:41:39 +00:00

Clean up rest of DeprecationWarnings

This commit is contained in:
2020-06-30 00:51:06 -05:00
parent ee2671a5f3
commit 5cc439d846
3 changed files with 8 additions and 8 deletions

View File

@@ -224,7 +224,7 @@ class Directories:
root = ET.parse(infile).getroot()
except Exception:
return
for rdn in root.getiterator("root_directory"):
for rdn in root.iter("root_directory"):
attrib = rdn.attrib
if "path" not in attrib:
continue
@@ -233,7 +233,7 @@ class Directories:
self.add_path(Path(path))
except (AlreadyThereError, InvalidPathError):
pass
for sn in root.getiterator("state"):
for sn in root.iter("state"):
attrib = sn.attrib
if not ("path" in attrib and "value" in attrib):
continue