From 1c610f14193f0b6b7071e2f1c738b5c390dc398c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <henrik@trineo.org> Date: Fri, 17 May 2019 17:34:44 +0200 Subject: [PATCH] fix --- src/caosadvancedtools/cfood.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/caosadvancedtools/cfood.py b/src/caosadvancedtools/cfood.py index a66b007a..69d7e7d2 100644 --- a/src/caosadvancedtools/cfood.py +++ b/src/caosadvancedtools/cfood.py @@ -51,9 +51,10 @@ class AbstractCFood(object): # a match # instances shall be used to keep track of a match; i.e. entities can be # object variable - def __init__(self, pattern, use_cache=False): + def __init__(self, pattern, use_cache=False, access=lambda x: x): self.pattern = re.compile(pattern) self.use_cache = use_cache + self.access = access def treat_match(self, crawled_file, match): print(crawled_file) -- GitLab