@@ -43,7 +43,7 @@ Default
43
43
session = cluster.connect()
44
44
local_query = ' SELECT rpc_address FROM system.local'
45
45
for _ in cluster.metadata.all_hosts():
46
- print session.execute(local_query)[0 ]
46
+ print ( session.execute(local_query)[0 ])
47
47
48
48
49
49
.. parsed-literal ::
@@ -69,7 +69,7 @@ Initializing cluster with profiles
69
69
profiles = {' node1' : node1_profile, ' node2' : node2_profile}
70
70
session = Cluster(execution_profiles = profiles).connect()
71
71
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 ])
73
73
74
74
75
75
.. parsed-literal ::
@@ -81,7 +81,7 @@ Initializing cluster with profiles
81
81
.. code :: python
82
82
83
83
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 ])
85
85
86
86
87
87
.. parsed-literal ::
@@ -93,7 +93,7 @@ Initializing cluster with profiles
93
93
.. code :: python
94
94
95
95
for _ in cluster.metadata.all_hosts():
96
- print session.execute(local_query)[0 ]
96
+ print ( session.execute(local_query)[0 ])
97
97
98
98
99
99
.. parsed-literal ::
@@ -123,7 +123,7 @@ New profiles can be added constructing from scratch, or deriving from default:
123
123
cluster.add_execution_profile(node1_profile, locked_execution)
124
124
125
125
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 ])
127
127
128
128
129
129
.. parsed-literal ::
@@ -144,8 +144,8 @@ We also have the ability to pass profile instances to be used for execution, but
144
144
145
145
tmp = session.execution_profile_clone_update(' node1' , request_timeout = 100 , row_factory = tuple_factory)
146
146
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 ])
149
149
150
150
.. parsed-literal ::
151
151
0 commit comments