@@ -43,7 +43,7 @@ Default
4343 session = cluster.connect()
4444 local_query = ' SELECT rpc_address FROM system.local'
4545 for _ in cluster.metadata.all_hosts():
46- print session.execute(local_query)[0 ]
46+ print ( session.execute(local_query)[0 ])
4747
4848
4949 .. parsed-literal ::
@@ -69,7 +69,7 @@ Initializing cluster with profiles
6969 profiles = {' node1' : node1_profile, ' node2' : node2_profile}
7070 session = Cluster(execution_profiles = profiles).connect()
7171 for _ in cluster.metadata.all_hosts():
72- print session.execute(local_query, execution_profile = ' node1' )[0 ]
72+ print ( session.execute(local_query, execution_profile = ' node1' )[0 ])
7373
7474
7575 .. parsed-literal ::
@@ -81,7 +81,7 @@ Initializing cluster with profiles
8181 .. code :: python
8282
8383 for _ in cluster.metadata.all_hosts():
84- print session.execute(local_query, execution_profile = ' node2' )[0 ]
84+ print ( session.execute(local_query, execution_profile = ' node2' )[0 ])
8585
8686
8787 .. parsed-literal ::
@@ -93,7 +93,7 @@ Initializing cluster with profiles
9393 .. code :: python
9494
9595 for _ in cluster.metadata.all_hosts():
96- print session.execute(local_query)[0 ]
96+ print ( session.execute(local_query)[0 ])
9797
9898
9999 .. parsed-literal ::
@@ -123,7 +123,7 @@ New profiles can be added constructing from scratch, or deriving from default:
123123 cluster.add_execution_profile(node1_profile, locked_execution)
124124
125125 for _ in cluster.metadata.all_hosts():
126- print session.execute(local_query, execution_profile = node1_profile)[0 ]
126+ print ( session.execute(local_query, execution_profile = node1_profile)[0 ])
127127
128128
129129 .. parsed-literal ::
@@ -144,8 +144,8 @@ We also have the ability to pass profile instances to be used for execution, but
144144
145145 tmp = session.execution_profile_clone_update(' node1' , request_timeout = 100 , row_factory = tuple_factory)
146146
147- print session.execute(local_query, execution_profile = tmp)[0 ]
148- print session.execute(local_query, execution_profile = ' node1' )[0 ]
147+ print ( session.execute(local_query, execution_profile = tmp)[0 ])
148+ print ( session.execute(local_query, execution_profile = ' node1' )[0 ])
149149
150150 .. parsed-literal ::
151151
0 commit comments