Commit a5935300 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

fix option parsing


git-svn-id: https://svn.forked.de/graph-tool/trunk@73 d4600afd-f417-0410-95de-beed9576f240
parent 08806f70
......@@ -157,7 +157,7 @@ graph = GraphInterface()
def parse_values(value):
"this will parse the options with multiple values"
p = re.compile(r"([^\|'\"]+|[^\|]+'[^']*'|[^\|]+\"[^\"]*\")(?:\||$)")
p = re.compile(r"([^\|'\"]+|[^\|]+'[^']*'[^\|'\"]+|[^\|]+\"[^\"]*\")(?:\||$)")
values = p.findall(value)
values = [x.strip() for x in values]
return values
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment