Skip to content

Commit

Permalink
remove other decode() for master compat
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholascar committed Apr 24, 2021
1 parent 908f1d1 commit 760c534
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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: <http://example.com/> .
Expand All @@ -64,7 +64,7 @@
"""
print("Printing Serialised Dataset:")
print("---")
print(d.serialize(format="trig").decode().strip())
print(d.serialize(format="trig"))
print("---")
print()
print()
Expand Down Expand Up @@ -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:

"""
Expand Down

0 comments on commit 760c534

Please sign in to comment.