Raise NotImplementedError instead of NotImplemented

This commit is contained in:
Tyler Hobbs
2013-06-14 16:59:12 -05:00
parent b0e32005d8
commit 5012f3f7f8
3 changed files with 7 additions and 7 deletions

View File

@@ -537,7 +537,7 @@ class Session(object):
return future
def prepare(self, query):
raise NotImplemented
raise NotImplementedError()
def shutdown(self):
"""

View File

@@ -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):

View File

@@ -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):
"""