Skip to content

Commit 2301f5a

Browse files
committed
fix comment/docs imports
1 parent 232058c commit 2301f5a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cassandra/datastax/graph/fluent/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ def traversal_source(session=None, graph_name=None, execution_profile=EXEC_PROFI
180180
181181
.. code-block:: python
182182
183-
from dse.cluster import Cluster
184-
from dse_graph import DseGraph
183+
from cassandra.cluster import Cluster
184+
from cassandra.datastax.graph.fluent import DseGraph
185185
186186
c = Cluster()
187187
session = c.connect()
@@ -218,7 +218,7 @@ def create_execution_profile(graph_name):
218218
@staticmethod
219219
def batch(*args, **kwargs):
220220
"""
221-
Returns the :class:`dse_graph.query.TraversalBatch` object allowing to
221+
Returns the :class:`cassandra.datastax.graph.fluent.query.TraversalBatch` object allowing to
222222
execute multiple traversals in the same transaction.
223223
"""
224224
return _DefaultTraversalBatch(*args, **kwargs)

docs/graph_fluent.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ which is not really verbose and quite annoying to repeat in a code base. Let's c
233233

234234
Now, we can use our DSL that is a lot cleaner::
235235

236-
from dse_graph import DseGraph
236+
from cassandra.datastax.graph.fluent import DseGraph
237237

238238
# ...
239239
g = DseGraph.traversal_source(session=session, traversal_class=MyAppTraversalsource)

0 commit comments

Comments
 (0)