summaryrefslogtreecommitdiff
path: root/Param/Int
diff options
context:
space:
mode:
Diffstat (limited to 'Param/Int')
-rw-r--r--Param/Int/.__init__.py0
-rw-r--r--Param/Int/__init__.py18
2 files changed, 0 insertions, 18 deletions
diff --git a/Param/Int/.__init__.py b/Param/Int/.__init__.py
deleted file mode 100644
index e69de29..0000000
--- a/Param/Int/.__init__.py
+++ /dev/null
diff --git a/Param/Int/__init__.py b/Param/Int/__init__.py
deleted file mode 100644
index 0a73cc1..0000000
--- a/Param/Int/__init__.py
+++ /dev/null
@@ -1,18 +0,0 @@
-from Param import Param
-
-class ParamInt(Param):
- def __init__(self, value, classname=""):
- super(ParamInt, self).__init__(classname=classname)
- try:
- if value:
- self.value = int(value)
- else:
- self.value = 0
- except Exception as e:
- self.err_warn("Not an int: %s" % str(value))
- self.err_warn(str(e))
- def __int__(self):
- return int(self.value)
-
- def __float__(self):
- return float(self.value)