diff options
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 |