summaryrefslogtreecommitdiff
path: root/lib/utils.py
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-04-26 10:02:10 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-04-26 10:02:10 +0200
commit3992ec39ee64460e3555e9ba157932dffb74042b (patch)
treea8065bd97ce5a8323a94ae2b3d06d99fb0ab42b1 /lib/utils.py
parent4c220e1b4e029d2130789c16b814143e4dcc00b8 (diff)
refactor function code into separate file to solve circular import
Diffstat (limited to 'lib/utils.py')
-rw-r--r--lib/utils.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/utils.py b/lib/utils.py
new file mode 100644
index 0000000..405d148
--- /dev/null
+++ b/lib/utils.py
@@ -0,0 +1,8 @@
+def is_numeric(n):
+ if n == None:
+ return False
+ try:
+ int(n)
+ return True
+ except ValueError:
+ return False