Skip to content

Commit cc62946

Browse files
committed
Make 2.7.2 compatible with Python 2.7.11+
1 parent 5b64569 commit cc62946

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cassandra/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2144,7 +2144,7 @@ def _try_connect(self, host):
21442144
# _clear_watcher will be called when this ControlConnection is about to be finalized
21452145
# _watch_callback will get the actual callback from the Connection and relay it to
21462146
# this object (after a dereferencing a weakref)
2147-
self_weakref = weakref.ref(self, callback=partial(_clear_watcher, weakref.proxy(connection)))
2147+
self_weakref = weakref.ref(self, partial(_clear_watcher, weakref.proxy(connection)))
21482148
try:
21492149
connection.register_watchers({
21502150
"TOPOLOGY_CHANGE": partial(_watch_callback, self_weakref, '_handle_topology_change'),

0 commit comments

Comments
 (0)