whitespace fixes pre-PYTHON-761
This commit is contained in:
parent
a83f3dd191
commit
9aaf1ec532
|
@ -619,6 +619,7 @@ class WriteType(object):
|
|||
A lighweight-transaction write, such as "DELETE ... IF EXISTS".
|
||||
"""
|
||||
|
||||
|
||||
WriteType.name_to_value = {
|
||||
'SIMPLE': WriteType.SIMPLE,
|
||||
'BATCH': WriteType.BATCH,
|
||||
|
|
|
@ -12,11 +12,14 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import struct, time, logging, sys, traceback
|
||||
import logging
|
||||
import struct
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
from cassandra import ConsistencyLevel, Unavailable, OperationTimedOut, ReadTimeout, ReadFailure, \
|
||||
WriteTimeout, WriteFailure
|
||||
from cassandra.cluster import Cluster, NoHostAvailable, ExecutionProfile
|
||||
from cassandra.cluster import Cluster, NoHostAvailable
|
||||
from cassandra.concurrent import execute_concurrent_with_args
|
||||
from cassandra.metadata import murmur3
|
||||
from cassandra.policies import (RoundRobinPolicy, DCAwareRoundRobinPolicy,
|
||||
|
|
|
@ -421,7 +421,6 @@ class DCAwareRoundRobinPolicyTest(unittest.TestCase):
|
|||
policy.on_up(hosts[2])
|
||||
policy.on_up(hosts[3])
|
||||
|
||||
|
||||
another_host = Host(5, SimpleConvictionPolicy)
|
||||
another_host.set_location_info("dc3", "rack1")
|
||||
new_host.set_location_info("dc3", "rack1")
|
||||
|
@ -1235,8 +1234,7 @@ class WhiteListRoundRobinPolicyTest(unittest.TestCase):
|
|||
class AddressTranslatorTest(unittest.TestCase):
|
||||
|
||||
def test_identity_translator(self):
|
||||
it = IdentityTranslator()
|
||||
addr = '127.0.0.1'
|
||||
IdentityTranslator()
|
||||
|
||||
@patch('socket.getfqdn', return_value='localhost')
|
||||
def test_ec2_multi_region_translator(self, *_):
|
||||
|
|
Loading…
Reference in New Issue