diff options
| author | pepperpepperpepper <pepper@scannerjammer.com> | 2015-10-09 15:52:02 -0700 |
|---|---|---|
| committer | pepperpepperpepper <pepper@scannerjammer.com> | 2015-10-09 15:52:02 -0700 |
| commit | 42da3b72a8ee7deac3abe238fbdb1591d8d945b9 (patch) | |
| tree | 004eff4289ff5e01d8d66fbb29942cb2f94f47a9 /lib/param/string.py | |
| parent | 0c965a54861e779ca51b235e7a3c2475d8a84dfb (diff) | |
alright got rid of most relative paths
Diffstat (limited to 'lib/param/string.py')
| -rw-r--r-- | lib/param/string.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/param/string.py b/lib/param/string.py deleted file mode 100644 index 14e8e87..0000000 --- a/lib/param/string.py +++ /dev/null @@ -1,21 +0,0 @@ -"""String class definition lives here""" -from .param import Param -import re -class String(Param): - """String param class definition - Args: - value: a string - classname: name of the class to which the param instance will belong - """ - def __init__(self, value, classname=""): - super(String, self).__init__(classname=classname) - if value: - try: - self.value = self.sanitize(value) - except Exception as e: - self.err_warn("Unable to sanitize: %s\nreason:%s" % (str(value), str(e))) - else: - self.value = "" - def sanitize(self, s): - """Removes non-word characters from the string for security reasons""" - return re.sub(r'\W+', '', s) |
