From 8b031ce95dce2894929c566921b44d86e04ef0e1 Mon Sep 17 00:00:00 2001
From: Amir MOHAMMADI <amir.mohammadi@idiap.ch>
Date: Thu, 19 Oct 2017 17:44:01 +0200
Subject: [PATCH] remove extra paranthesis

---
 bob/bio/base/extractor/stacks.py    | 2 +-
 bob/bio/base/preprocessor/stacks.py | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bob/bio/base/extractor/stacks.py b/bob/bio/base/extractor/stacks.py
index 8bc5aee5..98cb83ce 100644
--- a/bob/bio/base/extractor/stacks.py
+++ b/bob/bio/base/extractor/stacks.py
@@ -8,7 +8,7 @@ class MultipleExtractor(Extractor):
   not meant to be used directly."""
 
   def get_attributes(self, processors):
-    requires_training = any((p.requires_training for p in processors))
+    requires_training = any(p.requires_training for p in processors)
     split_training_data_by_client = any(p.split_training_data_by_client for p
                                         in processors)
     min_extractor_file_size = min(p.min_extractor_file_size for p in
diff --git a/bob/bio/base/preprocessor/stacks.py b/bob/bio/base/preprocessor/stacks.py
index af96a736..d7822915 100644
--- a/bob/bio/base/preprocessor/stacks.py
+++ b/bob/bio/base/preprocessor/stacks.py
@@ -26,8 +26,8 @@ class ParallelPreprocessor(ParallelProcessor, Preprocessor):
   __doc__ = ParallelProcessor.__doc__
 
   def __init__(self, processors, **kwargs):
-    min_preprocessed_file_size = min((p.min_preprocessed_file_size for p in
-                                      processors))
+    min_preprocessed_file_size = min(p.min_preprocessed_file_size for p in
+                                     processors)
 
     ParallelProcessor.__init__(self, processors)
     Preprocessor.__init__(
-- 
GitLab