flake8 blocking
@@ -10,9 +10,9 @@ import time
logger = logging.getLogger(__name__)
-
class Blocker:
'''Takes in a record and returns all blocks that record belongs to'''
+
def __init__(self, predicates):
self.predicates = predicates
@@ -22,7 +22,8 @@ class Blocker:
for full_predicate in predicates:
for predicate in full_predicate:
if hasattr(predicate, 'index'):
- self.index_fields[predicate.field][predicate.type].append(predicate)
+ self.index_fields[predicate.field][predicate.type].append(
+ predicate)
def __call__(self, records, target=False):
@@ -110,4 +111,3 @@ def extractIndices(index_fields) :
indices.append((index_type, index, preprocess))
return indices
-
