diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-04-26 10:02:10 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-04-26 10:02:10 +0200 |
commit | 3992ec39ee64460e3555e9ba157932dffb74042b (patch) | |
tree | a8065bd97ce5a8323a94ae2b3d06d99fb0ab42b1 /lib/utils.py | |
parent | 4c220e1b4e029d2130789c16b814143e4dcc00b8 (diff) |
refactor function code into separate file to solve circular import
Diffstat (limited to 'lib/utils.py')
-rw-r--r-- | lib/utils.py | 8 |
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 |