projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23053a2
)
4042: fix bad syntax
author
Peter Amstutz <peter.amstutz@curoverse.com>
Thu, 2 Oct 2014 19:01:46 +0000
(15:01 -0400)
committer
Peter Amstutz <peter.amstutz@curoverse.com>
Thu, 2 Oct 2014 19:01:46 +0000
(15:01 -0400)
crunch_scripts/run-command
patch
|
blob
|
history
diff --git
a/crunch_scripts/run-command
b/crunch_scripts/run-command
index 3b581861714a7a3197aba154197621987dd3924a..1e6f3a74957dba66c07b7b61780faf173f81d8e5 100755
(executable)
--- a/
crunch_scripts/run-command
+++ b/
crunch_scripts/run-command
@@
-131,7
+131,12
@@
def get_items(p, value):
if "extract" in value and "regex" in value:
pattern = re.compile(value["regex"])
items = get_items(p, value["group"])
- return [p.groups() for i in items if p = pattern.match(i)]
+ r = []
+ for i in items:
+ p = pattern.match(i)
+ if p:
+ r.append(p.groups())
+ return r
if isinstance(value, list):
return expand_list(p, value)