From 760c534fc1f00f09af6c9e907017d59aeb0b1629 Mon Sep 17 00:00:00 2001 From: Nicholas Car Date: Sat, 24 Apr 2021 15:25:05 +1000 Subject: [PATCH] remove other decode() for master compat --- examples/datasets.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/datasets.py b/examples/datasets.py index 72cadeb49..76f8ae735 100644 --- a/examples/datasets.py +++ b/examples/datasets.py @@ -47,7 +47,7 @@ URIRef("http://example.com/graph-2") )) -# printing the Dataset like this: print(d.serialize(format="trig").decode()) +# printing the Dataset like this: print(d.serialize(format="trig")) # produces a result like this: """ @prefix ex: . @@ -64,7 +64,7 @@ """ print("Printing Serialised Dataset:") print("---") -print(d.serialize(format="trig").decode().strip()) +print(d.serialize(format="trig")) print("---") print() print() @@ -130,7 +130,7 @@ # Remove Graph graph_1 from the Dataset d.remove_graph(graph_1) -# printing the Dataset like this: print(d.serialize(format="trig").decode()) +# printing the Dataset like this: print(d.serialize(format="trig")) # now produces a result like this: """