fixed a python 3 problem, thanks kato

This commit is contained in:
mdipierro
2017-07-10 14:54:08 -05:00
parent aa252cdbd8
commit 4854b84ff9

View File

@@ -453,7 +453,7 @@ class IS_IN_SET(Validator):
if not self.labels:
items = [(k, k) for (i, k) in enumerate(self.theset)]
else:
items = [(k, self.labels[i]) for (i, k) in enumerate(self.theset)]
items = [(k, list(self.labels)[i]) for (i, k) in enumerate(self.theset)]
if self.sort:
items.sort(key=lambda o: str(o[1]).upper())
if zero and self.zero is not None and not self.multiple: