diff --git a/docs/source/api.rst b/docs/source/api.rst index 290bb4fb8..2e934a2b5 100644 --- a/docs/source/api.rst +++ b/docs/source/api.rst @@ -23,7 +23,7 @@ Example, driver creation: from neo4j import GraphDatabase - uri = neo4j://example.com:7687 + uri = "neo4j://example.com:7687" driver = GraphDatabase.driver(uri, auth=("neo4j", "password"), max_connection_lifetime=1000) driver.close() # close the driver object @@ -44,8 +44,7 @@ Example, with block context: from neo4j import GraphDatabase - uri = neo4j://example.com:7687 - + uri = "neo4j://example.com:7687" with GraphDatabase.driver(uri, auth=("neo4j", "password")) as driver: # use the driver @@ -69,11 +68,11 @@ Available valid URIs: .. code-block:: python - uri = bolt://example.com:7687 + uri = "bolt://example.com:7687" .. code-block:: python - uri = neo4j://example.com:7687 + uri = "neo4j://example.com:7687" Each supported scheme maps to a particular :class:`neo4j.Driver` subclass that implements a specific behaviour. @@ -1336,4 +1335,4 @@ Bookmark ******** .. autoclass:: neo4j.Bookmark - :members: \ No newline at end of file + :members: diff --git a/docs/source/driver.rst b/docs/source/driver.rst index 42409bfbc..5dff18323 100644 --- a/docs/source/driver.rst +++ b/docs/source/driver.rst @@ -26,11 +26,11 @@ On construction, the `scheme` of the URI determines the type of :class:`neo4j.Dr Example URI:: - uri = bolt://localhost:7687 + uri = "bolt://localhost:7687" Example URI:: - uri = neo4j://localhost:7687 + uri = "neo4j://localhost:7687" Each supported scheme maps to a particular :class:`neo4j.Driver` subclass that implements a specific behaviour.