Skip to content

Commit 2afa635

Browse files
committed
pep8 fixes
1 parent 16ad9ee commit 2afa635

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cassandra/cluster.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def _is_gevent_monkey_patched():
8686
import gevent.socket
8787
return socket.socket is gevent.socket.socket
8888

89+
8990
# default to gevent when we are monkey patched with gevent, eventlet when
9091
# monkey patched with eventlet, otherwise if libev is available, use that as
9192
# the default because it's fastest. Otherwise, use asyncore.
@@ -181,6 +182,7 @@ def _shutdown_clusters():
181182
for cluster in clusters:
182183
cluster.shutdown()
183184

185+
184186
atexit.register(_shutdown_clusters)
185187

186188

tests/integration/simulacron/test_cluster.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
from tests.integration.simulacron.utils import prime_query
2222

2323
from cassandra import WriteTimeout, WriteType, ConsistencyLevel
24+
from cassandra.cluster import Cluster
25+
2426

2527
@requiressimulacron
2628
class ClusterTests(SimulacronCluster):

0 commit comments

Comments
 (0)