summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmat/archive.py2
-rw-r--r--libmat/misc.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/libmat/archive.py b/libmat/archive.py
index 07c5830..b635f99 100644
--- a/libmat/archive.py
+++ b/libmat/archive.py
@@ -30,7 +30,7 @@ class GenericArchiveStripper(parser.GenericParser):
30 """ Remove the files inside the temp dir, 30 """ Remove the files inside the temp dir,
31 then remove the temp dir 31 then remove the temp dir
32 """ 32 """
33 for root, dirs, files in os.walk(self.tempdir): 33 for root, _, files in os.walk(self.tempdir):
34 for item in files: 34 for item in files:
35 path_file = os.path.join(root, item) 35 path_file = os.path.join(root, item)
36 mat.secure_remove(path_file) 36 mat.secure_remove(path_file)
diff --git a/libmat/misc.py b/libmat/misc.py
index e5db06d..20da19d 100644
--- a/libmat/misc.py
+++ b/libmat/misc.py
@@ -55,7 +55,7 @@ class TorrentStripper(parser.GenericParser):
55 """ 55 """
56 d = dict() 56 d = dict()
57 for i, j in list(dictionary.items()): 57 for i, j in list(dictionary.items()):
58 if not i in self.fields: 58 if i not in self.fields:
59 continue 59 continue
60 elif isinstance(j, dict): 60 elif isinstance(j, dict):
61 d = dict(list(d.items()) + list(self.__get_meta_recursively(j).items())) 61 d = dict(list(d.items()) + list(self.__get_meta_recursively(j).items()))