plugin base: drop _config_bool() method
This commit is contained in:
parent
291c1a7fb0
commit
b5aae46087
1 changed files with 0 additions and 8 deletions
|
|
@ -60,14 +60,6 @@ class Plugin(object):
|
|||
value = str(value).lower()
|
||||
return value == "true" or value == "1"
|
||||
|
||||
def _config_bool(self, value, true_value="1", false_value="0"):
|
||||
if value == True or value == "1" or str(value).lower() == "true":
|
||||
return true_value
|
||||
elif value == False or value == "0" or str(value).lower() == "false":
|
||||
return false_value
|
||||
else:
|
||||
return None
|
||||
|
||||
#
|
||||
# Interface for manipulation with instances of the plugin.
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue