aboutsummaryrefslogtreecommitdiffstats
path: root/bsie/extractor/generic/path.py
diff options
context:
space:
mode:
Diffstat (limited to 'bsie/extractor/generic/path.py')
-rw-r--r--bsie/extractor/generic/path.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bsie/extractor/generic/path.py b/bsie/extractor/generic/path.py
index f358a79..f346f97 100644
--- a/bsie/extractor/generic/path.py
+++ b/bsie/extractor/generic/path.py
@@ -24,7 +24,7 @@ __all__: typing.Sequence[str] = (
class Path(extractor.Extractor):
"""Extract information from file's path."""
- CONTENT_READER = bsie.reader.path.Path
+ CONTENT_READER = 'bsie.reader.path.Path'
# mapping from predicate to handler function.
_callmap: typing.Dict[schema.Predicate, typing.Callable[[str], typing.Any]]
@@ -45,7 +45,7 @@ class Path(extractor.Extractor):
def extract(
self,
subject: node.Node,
- content: CONTENT_READER.CONTENT_TYPE,
+ content: str,
predicates: typing.Iterable[schema.Predicate],
) -> typing.Iterator[typing.Tuple[node.Node, schema.Predicate, typing.Any]]:
for pred in predicates: