Also do not allow empty paths in zpython bindings
This commit is contained in:
parent
a01870c1d3
commit
10300756cc
|
@ -57,7 +57,11 @@ class Args(object):
|
||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
if isinstance(ret, (unicode, str, bytes)):
|
if isinstance(ret, (unicode, str, bytes)):
|
||||||
return ret.split((b':' if isinstance(ret, bytes) else ':'))
|
return [
|
||||||
|
path
|
||||||
|
for path in ret.split((b':' if isinstance(ret, bytes) else ':'))
|
||||||
|
if path
|
||||||
|
]
|
||||||
else:
|
else:
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue