Skip to content

Commit f492b14

Browse files
committed
Review and lint comments for oss-next
1 parent 07a1e7c commit f492b14

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ cassandra:
179179
env:
180180
CYTHON:
181181
- CYTHON
182-
# - NO_CYTHON
182+
- NO_CYTHON
183183

184184
build:
185185
- script: |

cassandra/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ class TransitionalModePlainTextAuthProvider(object):
150150
auth_provider = TransitionalModePlainTextAuthProvider()
151151
cluster = Cluster(auth_provider=auth_provider)
152152
153-
.. warning:: TransitionalModePlainTextAuthProvider will be removed in dse-driver
154-
3.0. The transitional mode will be handled internally without the need
153+
.. warning:: TransitionalModePlainTextAuthProvider will be removed in cassandra-driver
154+
4.0. The transitional mode will be handled internally without the need
155155
of any auth provider.
156156
"""
157157

cassandra/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ def __init__(self, load_balancing_policy=None, retry_policy=None,
446446
See also :class:`~.GraphExecutionPolicy`.
447447
448448
In addition to default parameters shown in the signature, this profile also defaults ``retry_policy`` to
449-
:class:`dse.policies.NeverRetryPolicy`, and ``load_balancing_policy`` to one that targets the current Spark
449+
:class:`cassandra.policies.NeverRetryPolicy`, and ``load_balancing_policy`` to one that targets the current Spark
450450
master.
451451
452452
Note: The graph_options.graph_source is set automatically to b'a' (analytics)

tests/integration/advanced/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from cassandra.cluster import Cluster, EXEC_PROFILE_GRAPH_DEFAULT, EXEC_PROFILE_GRAPH_ANALYTICS_DEFAULT
3434

3535
from tests.integration import PROTOCOL_VERSION, DSE_VERSION, get_server_versions, BasicKeyspaceUnitTestCase, \
36-
drop_keyspace_shutdown_cluster, get_node, USE_CASS_EXTERNAL, CASSANDRA_IP
36+
drop_keyspace_shutdown_cluster, get_node, USE_CASS_EXTERNAL, CASSANDRA_IP, set_default_cass_ip
3737
from tests.integration import use_singledc, use_single_node, wait_for_node_socket
3838
from cassandra.protocol import ServerError
3939
from cassandra.util import Point, LineString, Polygon
@@ -216,7 +216,7 @@ def use_cluster_with_graph(num_nodes):
216216
when started all at once.
217217
"""
218218
if USE_CASS_EXTERNAL:
219-
set_default_dse_ip()
219+
set_default_cass_ip()
220220
return
221221

222222
# Create the cluster but don't start it.
@@ -705,4 +705,4 @@ def validate_path_result_type(test, path):
705705
elif isinstance(obj, Vertex):
706706
validate_classic_vertex(test, obj)
707707
else:
708-
test.fail("Invalid object found in path " + str(object.type))
708+
test.fail("Invalid object found in path " + str(obj.type))

tests/integration/advanced/graph/fluent/test_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def _validate_path_result_type(self, g, objects_path):
468468
elif isinstance(obj, TravVertex):
469469
self._validate_classic_vertex(g, obj)
470470
else:
471-
self.fail("Invalid object found in path " + str(object.type))
471+
self.fail("Invalid object found in path " + str(obj.type))
472472

473473
def _validate_meta_property(self, g, vertex):
474474
meta_props = g.V(vertex.id).properties().toList()

0 commit comments

Comments
 (0)