about summary refs log tree commit diff
path: root/dropcalc/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'dropcalc/util.py')
-rw-r--r--dropcalc/util.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/dropcalc/util.py b/dropcalc/util.py
new file mode 100644
index 0000000..923765b
--- /dev/null
+++ b/dropcalc/util.py
@@ -0,0 +1,4 @@
+def is_int(x):
+    try: int(x)
+    except ValueError: return False
+    else: return True