Skip to content

Commit 5516735

Browse files
committed
cleanup pre-PYTHON-838
- remove new sentinel; reuse _NOT_SET - add file-terminating newline
1 parent 22571af commit 5516735

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

cassandra/cluster.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,6 @@ class _ConfigMode(object):
312312
PROFILES = 2
313313

314314

315-
_UNSET_ARG = object()
316-
317315
class 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 '

tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ def is_monkey_patched():
9090

9191
notwindows = unittest.skipUnless(not "Windows" in platform.system(), "This test is not adequate for windows")
9292
notpypy = 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")

0 commit comments

Comments
 (0)