forked from p15670423/monkey
Bugfix in _cast_by_example, see issue #109
This commit is contained in:
parent
225c7fae6f
commit
3aa1b9e5a9
|
@ -25,7 +25,7 @@ def _cast_by_example(value, example):
|
|||
if example_type is str:
|
||||
return str(os.path.expandvars(value))
|
||||
elif example_type is tuple and len(example) != 0:
|
||||
if value is None or value == tuple(None):
|
||||
if value is None or value == tuple([None]):
|
||||
return tuple()
|
||||
return tuple([_cast_by_example(x, example[0]) for x in value])
|
||||
elif example_type is list and len(example) != 0:
|
||||
|
|
Loading…
Reference in New Issue