Fix ArrayOfEnum's handling of empty arrays.

Prior to this change a value of `'{}'` would split into the list `['']`.
(cherry picked from commit a2badb751f)
This commit is contained in:
Chase
2016-01-19 22:36:15 -08:00
committed by Mike Bayer
parent 23e60cd8eb
commit f039219eed
+1 -1
View File
@@ -544,7 +544,7 @@ use the following workaround type::
def handle_raw_string(value):
inner = re.match(r"^{(.*)}$", value).group(1)
return inner.split(",")
return inner.split(",") if inner else []
def process(value):
if value is None: