Skip to content

Commit 77a09ae

Browse files
committed
wip
1 parent f1de37c commit 77a09ae

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

rdflib/plugins/serializers/turtle.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,13 +230,15 @@ def reset(self):
230230
def serialize(
231231
self,
232232
stream: BufferedIOBase,
233-
base: Optional[str],
234-
encoding: Optional[str],
233+
base: Optional[str] = None,
234+
encoding: Optional[str] = None,
235235
spacious: Optional[bool] = None,
236236
**args
237237
):
238238
self.reset()
239-
self.stream = TextIOWrapper(stream, encoding, errors="replace", write_through=True)
239+
self.stream = TextIOWrapper(
240+
stream, encoding, errors="replace", write_through=True
241+
)
240242
# self.encoding = encoding
241243
# if base is given here, use that, if not and a base is set for the graph use that
242244
if base is not None:

0 commit comments

Comments
 (0)