pyoxigraph docstring escape backslash

pull/222/head
Edmond 3 years ago
parent 7e4aeebec1
commit d065161c36
  1. 4
      python/pyoxigraph/store.py

@ -34,7 +34,7 @@ class Store(PyStore):
>>> store = Store() >>> store = Store()
>>> store.add(Quad(NamedNode('http://example.com'), NamedNode('http://example.com/p'), Literal('1'), NamedNode('http://example.com/g'))) >>> store.add(Quad(NamedNode('http://example.com'), NamedNode('http://example.com/p'), Literal('1'), NamedNode('http://example.com/g')))
>>> str(store) >>> str(store)
'<http://example.com> <http://example.com/p> "1" <http://example.com/g> .\n' '<http://example.com> <http://example.com/p> "1" <http://example.com/g> .\\n'
""" """
def __init__(self, path: Union[str, None] = None) -> None: def __init__(self, path: Union[str, None] = None) -> None:
@ -193,7 +193,7 @@ class Store(PyStore):
>>> output = io.BytesIO() >>> output = io.BytesIO()
>>> store.dump(output, "text/turtle", from_graph=NamedNode("http://example.com/g")) >>> store.dump(output, "text/turtle", from_graph=NamedNode("http://example.com/g"))
>>> output.getvalue() >>> output.getvalue()
b'<http://example.com> <http://example.com/p> "1" .\n' b'<http://example.com> <http://example.com/p> "1" .\\n'
""" """
super().dump(output, mime_type, from_graph=from_graph) super().dump(output, mime_type, from_graph=from_graph)

Loading…
Cancel
Save