Skip to content
Snippets Groups Projects
Commit 1c610f14 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

fix

parent 8060620f
Branches
Tags
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment