From dd7d9847767361e0dfeac23ef88bb366aa99e164 Mon Sep 17 00:00:00 2001 From: yo mama Date: Wed, 23 Sep 2015 23:57:55 -0700 Subject: renamed modules --- lib/Param/Bool.py | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 lib/Param/Bool.py (limited to 'lib/Param/Bool.py') diff --git a/lib/Param/Bool.py b/lib/Param/Bool.py deleted file mode 100644 index 7b779cb..0000000 --- a/lib/Param/Bool.py +++ /dev/null @@ -1,19 +0,0 @@ -from Param import Param -import re -import sys -class ParamBool(Param): - def __init__(self, value, classname=""): - super(ParamBool, self).__init__(classname=classname) - if value: - self.value = self._bool_correct(value) - else: - self.value = False - def _bool_correct(self, b): - if type(b) == str or type(b) == unicode: - if re.match(r'true', b, re.IGNORECASE): - return True - elif re.match(r'false', b, re.IGNORECASE): - return False - elif type(b) == bool: - return b - self.err_warn("Not a bool: %s" % str(b)) -- cgit v1.2.3-70-g09d2