[Pkg-privacy-commits] [mat] 36/68: Misc pep8 conformity

Sascha Steinbiss sascha at steinbiss.name
Sun Jan 3 12:32:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

sascha-guest pushed a commit to branch master
in repository mat.

commit 0d3ef2edd7accd04e0b7e39bbf303362b8e8e1c2
Author: jvoisin <julien.voisin at dustri.org>
Date:   Wed Dec 2 20:36:13 2015 +0100

    Misc pep8 conformity
---
 libmat/archive.py | 2 +-
 libmat/misc.py    | 2 +-
 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):
         """ Remove the files inside the temp dir,
             then remove the temp dir
         """
-        for root, dirs, files in os.walk(self.tempdir):
+        for root, _, files in os.walk(self.tempdir):
             for item in files:
                 path_file = os.path.join(root, item)
                 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):
         """
         d = dict()
         for i, j in list(dictionary.items()):
-            if not i in self.fields:
+            if i not in self.fields:
                 continue
             elif isinstance(j, dict):
                 d = dict(list(d.items()) + list(self.__get_meta_recursively(j).items()))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/mat.git



More information about the Pkg-privacy-commits mailing list