Now use the is_nonstr_iter function, from colander.compat

This commit is contained in:
Joe Dallago
2012-09-18 08:07:42 +00:00
parent 070891ad6b
commit 27abee5f45

View File

@@ -1671,7 +1671,7 @@ class SchemaNode(object):
if hasattr(self.preparer, '__call__'):
appstruct = self.preparer(appstruct)
# if the preparer is a list, call each separate preparer
elif hasattr(self.preparer, '__iter__'):
elif is_nonstr_iter(self.preparer):
for preparer in self.preparer:
appstruct = preparer(appstruct)