Skip to content

Commit

Permalink
Pass base uri to serializer when writing to file. (#2977)
Browse files Browse the repository at this point in the history
Co-authored-by: Nicholas Car <nick@kurrawong.net>
  • Loading branch information
2 people authored and edmondchuc committed Jan 15, 2025
1 parent 3c8c25d commit ce780cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdflib/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1366,7 +1366,7 @@ def serialize(
else:
os_path = location
with open(os_path, "wb") as stream:
serializer.serialize(stream, encoding=encoding, **args)
serializer.serialize(stream, base=base, encoding=encoding, **args)
return self

def print(
Expand Down

0 comments on commit ce780cd

Please sign in to comment.