Also do not allow empty paths in zpython bindings

This commit is contained in:
ZyX 2015-01-07 05:14:41 +03:00
parent a01870c1d3
commit 10300756cc
1 changed files with 5 additions and 1 deletions

View File

@ -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