aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bindings/python/overview.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/python/overview.rst b/bindings/python/overview.rst
index 582c3762..a43abc7c 100644
--- a/bindings/python/overview.rst
+++ b/bindings/python/overview.rst
@@ -116,7 +116,7 @@ wrappers for more fundamental ones. All node constructors reduce to one of the
following:
* :func:`serd.plain_literal` - A string with optional language, like
- `"hallo"@de` in Turtle.
+ ``"hallo"@de`` in Turtle.
* :func:`serd.typed_literal` - A string with optional datatype, like
``"1.2E9"^^xsd:float`` in Turtle.
@@ -594,7 +594,7 @@ Writing Files
.. testcode::
env = serd.Env()
- byte_sink = serd.ByteSink(filename="written.ttl")
+ byte_sink = serd.FileSink("written.ttl")
writer = serd.Writer(world, serd.Syntax.TURTLE, 0, env, byte_sink)
st = model.all().serialise(writer.sink(), 0)
writer.finish()