Skip to content

Commit

Permalink
Merge branch 'develop' into 'master'
Browse files Browse the repository at this point in the history
new release

Closes #19, #18, #15, #16, #17, #14, #13, #12, #11, #3, #10, #9, and #6

See merge request linuxfabrik/lib!7
  • Loading branch information
markuslf committed Jun 15, 2021
2 parents 398c3c0 + d476b2b commit 6c9588b
Show file tree
Hide file tree
Showing 24 changed files with 1,158 additions and 237 deletions.
8 changes: 4 additions & 4 deletions args2.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"""

__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
__version__ = '2020043001'
__version__ = '2021050401'


def csv(arg):
Expand All @@ -26,7 +26,7 @@ def float_or_none(arg):
"""Returns None or float from a `float_or_none` input argument.
"""

if arg is None or str(arg.lower()) == 'none':
if arg is None or str(arg).lower() == 'none':
return None
return float(arg)

Expand All @@ -35,7 +35,7 @@ def int_or_none(arg):
"""Returns None or int from a `int_or_none` input argument.
"""

if arg is None or str(arg.lower()) == 'none':
if arg is None or str(arg).lower() == 'none':
return None
return int(arg)

Expand All @@ -51,6 +51,6 @@ def str_or_none(arg):
"""Returns None or str from a `str_or_none` input argument.
"""

if arg is None or str(arg.lower()) == 'none':
if arg is None or str(arg).lower() == 'none':
return None
return str(arg)
Loading

0 comments on commit 6c9588b

Please sign in to comment.