summaryrefslogtreecommitdiff
path: root/rdflib/parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'rdflib/parser.py')
-rw-r--r--rdflib/parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rdflib/parser.py b/rdflib/parser.py
index aa622ee0..ce4e5a2d 100644
--- a/rdflib/parser.py
+++ b/rdflib/parser.py
@@ -238,7 +238,7 @@ def create_input_source(
else:
if isinstance(source, str):
location = source
- elif isinstance(source, pathlib.Path):
+ elif isinstance(source, pathlib.PurePath):
location = str(source)
elif isinstance(source, bytes):
data = source