1
0
Fork 0

plugin base: drop _config_bool() method

This commit is contained in:
Jan Vcelak 2013-01-24 17:16:50 +01:00
parent 291c1a7fb0
commit b5aae46087

View file

@ -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.
#