Commit 2ba293ac authored by Oriol Tintó-Prims's avatar Oriol Tintó-Prims
Browse files

Fix function remove_keywords.

parent e5c3796b
......@@ -40,11 +40,11 @@ def remove_keywords(arguments):
"""
In case there's a keyword argument, return only the value.
"""
patt = "[a-zA-Z_0-9]*=(.*)"
patt = "[a-zA-Z_0-9]* *=(.*)"
for index, argument in enumerate(arguments):
m = re.match(patt, argument)
m = re.match(patt, argument.strip())
if m:
arguments[index] = m.group(1)
arguments[index] = m.group(1).strip()
return arguments
......
Markdown is supported
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