File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -312,8 +312,6 @@ class _ConfigMode(object):
312312 PROFILES = 2
313313
314314
315- _UNSET_ARG = object ()
316-
317315class Cluster (object ):
318316 """
319317 The main class to use when interacting with a Cassandra cluster.
@@ -735,7 +733,7 @@ def token_metadata_enabled(self, enabled):
735733 _listener_lock = None
736734
737735 def __init__ (self ,
738- contact_points = _UNSET_ARG ,
736+ contact_points = _NOT_SET ,
739737 port = 9042 ,
740738 compression = True ,
741739 auth_provider = None ,
@@ -772,7 +770,7 @@ def __init__(self,
772770
773771 Any of the mutable Cluster attributes may be set as keyword arguments to the constructor.
774772 """
775- if contact_points is not _UNSET_ARG and load_balancing_policy is None :
773+ if contact_points is not _NOT_SET and load_balancing_policy is None :
776774 log .warn ('Cluster.__init__ called with contact_points specified, '
777775 'but no load_balancing_policy. In the next major '
778776 'version, this will raise an error; please specify a '
Original file line number Diff line number Diff line change @@ -90,4 +90,4 @@ def is_monkey_patched():
9090
9191notwindows = unittest .skipUnless (not "Windows" in platform .system (), "This test is not adequate for windows" )
9292notpypy = unittest .skipUnless (not platform .python_implementation () == 'PyPy' , "This tests is not suitable for pypy" )
93- notmonkeypatch = unittest .skipUnless (MONKEY_PATCH_LOOP , "Skipping this test because monkey patching is required" )
93+ notmonkeypatch = unittest .skipUnless (MONKEY_PATCH_LOOP , "Skipping this test because monkey patching is required" )
You can’t perform that action at this time.
0 commit comments