Raise NotImplementedError instead of NotImplemented
This commit is contained in:
@@ -537,7 +537,7 @@ class Session(object):
|
||||
return future
|
||||
|
||||
def prepare(self, query):
|
||||
raise NotImplemented
|
||||
raise NotImplementedError()
|
||||
|
||||
def shutdown(self):
|
||||
"""
|
||||
|
@@ -13,10 +13,10 @@ class HostDistance(object):
|
||||
class LoadBalancingPolicy(object):
|
||||
|
||||
def distance(self, host):
|
||||
raise NotImplemented()
|
||||
raise NotImplementedError()
|
||||
|
||||
def make_query_plan(self, query=None):
|
||||
raise NotImplemented()
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
class RoundRobinPolicy(LoadBalancingPolicy):
|
||||
@@ -132,14 +132,14 @@ class ConvictionPolicy(object):
|
||||
Implementations should return ``True`` if the host should be
|
||||
convicted, ``False`` otherwise.
|
||||
"""
|
||||
raise NotImplemented()
|
||||
raise NotImplementedError()
|
||||
|
||||
def reset(self):
|
||||
"""
|
||||
Implementations should clear out any convictions or state regarding
|
||||
the host.
|
||||
"""
|
||||
raise NotImplemented()
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
class SimpleConvictionPolicy(ConvictionPolicy):
|
||||
@@ -154,7 +154,7 @@ class SimpleConvictionPolicy(ConvictionPolicy):
|
||||
class ReconnectionPolicy(object):
|
||||
|
||||
def new_schedule(self):
|
||||
raise NotImplemented()
|
||||
raise NotImplementedError()
|
||||
|
||||
|
||||
class ConstantReconnectionPolicy(ReconnectionPolicy):
|
||||
|
@@ -118,7 +118,7 @@ class _ReconnectionHandler(object):
|
||||
open a new Connection and return it; if a failure occurs, an
|
||||
Exception should be raised.
|
||||
"""
|
||||
raise NotImplemented()
|
||||
raise NotImplementedError()
|
||||
|
||||
def on_reconnection(self, connection):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user