shlex.split() tries to read from stdin if passed None

pull/266/head
Reed Murphy 13 years ago
parent b9982fc17b
commit abf524405a

@ -267,6 +267,7 @@ def parse_yaml_from_file(path):
def parse_kv(args):
''' convert a string of key/value items to a dict '''
options = {}
if not args is None:
vargs = shlex.split(args, posix=True)
for x in vargs:
if x.find("=") != -1:

Loading…
Cancel
Save