Add missing 'self' param to conviction policy methods
This commit is contained in:
@@ -129,7 +129,7 @@ class ConvictionPolicy(object):
|
|||||||
def __init__(self, host):
|
def __init__(self, host):
|
||||||
self.host = host
|
self.host = host
|
||||||
|
|
||||||
def add_failure(connection_exc):
|
def add_failure(self, connection_exc):
|
||||||
"""
|
"""
|
||||||
Implementations should return ``True`` if the host should be
|
Implementations should return ``True`` if the host should be
|
||||||
convicted, ``False`` otherwise.
|
convicted, ``False`` otherwise.
|
||||||
@@ -146,7 +146,7 @@ class ConvictionPolicy(object):
|
|||||||
|
|
||||||
class SimpleConvictionPolicy(ConvictionPolicy):
|
class SimpleConvictionPolicy(ConvictionPolicy):
|
||||||
|
|
||||||
def add_failure(connection_exc):
|
def add_failure(self, connection_exc):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def reset(self):
|
def reset(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user