Skip to content

Commit e9bf586

Browse files
Pass base uri to serializer when writing to file. (#2977)
Co-authored-by: Nicholas Car <[email protected]>
1 parent 6747715 commit e9bf586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rdflib/graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ def serialize(
14171417
else:
14181418
os_path = location
14191419
with open(os_path, "wb") as stream:
1420-
serializer.serialize(stream, encoding=encoding, **args)
1420+
serializer.serialize(stream, base=base, encoding=encoding, **args)
14211421
return self
14221422

14231423
def print(

0 commit comments

Comments
 (0)