Skip to content

Commit 61aaeed

Browse files
Fix whitespaces
1 parent 4b73e8d commit 61aaeed

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cassandra/cluster.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ def default_retry_policy(self, policy):
10151015
cloud = None
10161016
"""
10171017
A dict of the cloud configuration. Example::
1018-
1018+
10191019
{
10201020
# path to the secure connect bundle
10211021
'secure_connect_bundle': '/path/to/secure-connect-dbname.zip',
@@ -1779,7 +1779,7 @@ def connect(self, keyspace=None, wait_for_all_pools=False):
17791779
self.contact_points, self.protocol_version)
17801780
self.connection_class.initialize_reactor()
17811781
_register_cluster_shutdown(self)
1782-
1782+
17831783
self._add_resolved_hosts()
17841784

17851785
try:
@@ -3628,7 +3628,7 @@ def _set_new_connection(self, conn):
36283628
if old:
36293629
log.debug("[control connection] Closing old connection %r, replacing with %r", old, conn)
36303630
old.close()
3631-
3631+
36323632
def _connect_host_in_lbp(self):
36333633
errors = {}
36343634
lbp = (
@@ -3649,7 +3649,7 @@ def _connect_host_in_lbp(self):
36493649
log.warning("[control connection] Error connecting to %s:", host, exc_info=True)
36503650
if self._is_shutdown:
36513651
raise DriverException("[control connection] Reconnection in progress during shutdown")
3652-
3652+
36533653
return (None, errors)
36543654

36553655
def _reconnect_internal(self):
@@ -3673,7 +3673,7 @@ def _reconnect_internal(self):
36733673
(conn, errors) = self._connect_host_in_lbp()
36743674
if conn is not None:
36753675
return conn
3676-
3676+
36773677
raise NoHostAvailable("Unable to connect to any servers", errors)
36783678

36793679
def _try_connect(self, host):

0 commit comments

Comments
 (0)