projects
/
htsworkflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c45f3f1
)
Use a re.split so we can accept both ', ' and ',' between list items.
author
Diane Trout
<diane@caltech.edu>
Wed, 23 Sep 2015 21:57:32 +0000
(14:57 -0700)
committer
Diane Trout
<diane@caltech.edu>
Wed, 23 Sep 2015 21:57:32 +0000
(14:57 -0700)
htsworkflow/submission/encoded.py
patch
|
blob
|
history
diff --git
a/htsworkflow/submission/encoded.py
b/htsworkflow/submission/encoded.py
index 964cdb69a7454aeaf9f02dbe6b5e3bbf3bcd9488..c8ed19511b8dd55a03ef5c5e30da6983920aa5fd 100644
(file)
--- a/
htsworkflow/submission/encoded.py
+++ b/
htsworkflow/submission/encoded.py
@@
-11,6
+11,7
@@
import logging
import json
import jsonschema
import os
+import re
import requests
import six
from six.moves.urllib.parse import urljoin, urlparse, urlunparse
@@
-474,7
+475,7
@@
class TypedColumnParser(object):
def parse_sheet_array_type(value):
"""Helper function to parse :array columns in sheet
"""
- return
value.split(', '
)
+ return
re.split(',\s*', value
)
@staticmethod
def parse_sheet_integer_type(value):