diff options
author | Nicholas Car <nicholas.car@surroundaustralia.com> | 2020-12-18 05:11:03 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-18 05:11:03 +1000 |
commit | dd1a7b14b64f62257d6fbf15ebbf1466a63032c7 (patch) | |
tree | 2f812d976391eab712d90e1ab4e88e61b85eeea1 | |
parent | c0fec2db7ade95c90fd6e590339801f51a28c280 (diff) | |
download | rdflib-dd1a7b14b64f62257d6fbf15ebbf1466a63032c7.tar.gz |
remove decode() as now result is stringserialize1
-rw-r--r-- | rdflib/container.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rdflib/container.py b/rdflib/container.py index 5960d0a7..3001ba46 100644 --- a/rdflib/container.py +++ b/rdflib/container.py @@ -14,7 +14,7 @@ class Container(object): >>> from rdflib import Graph, BNode, Literal, Bag
>>> g = Graph()
>>> b = Bag(g, BNode(), [Literal("One"), Literal("Two"), Literal("Three")])
- >>> print(g.serialize(format="turtle").decode())
+ >>> print(g.serialize(format="turtle"))
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
<BLANKLINE>
[] a rdf:Bag ;
@@ -30,7 +30,7 @@ class Container(object): >>> # add a new item
>>> b.append(Literal("Hello"))
- >>> print(g.serialize(format="turtle").decode())
+ >>> print(g.serialize(format="turtle"))
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
<BLANKLINE>
[] a rdf:Bag ;
|