summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Car <nicholas.car@surroundaustralia.com>2020-12-18 05:11:03 +1000
committerGitHub <noreply@github.com>2020-12-18 05:11:03 +1000
commitdd1a7b14b64f62257d6fbf15ebbf1466a63032c7 (patch)
tree2f812d976391eab712d90e1ab4e88e61b85eeea1
parentc0fec2db7ade95c90fd6e590339801f51a28c280 (diff)
downloadrdflib-serialize1.tar.gz
remove decode() as now result is stringserialize1
-rw-r--r--rdflib/container.py4
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 ;