From 27abee5f45669f6e4a26f8f8942451da77989dcb Mon Sep 17 00:00:00 2001 From: Joe Dallago Date: Tue, 18 Sep 2012 08:07:42 +0000 Subject: [PATCH] Now use the is_nonstr_iter function, from colander.compat --- colander/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/colander/__init__.py b/colander/__init__.py index fbd30d8..590dd69 100644 --- a/colander/__init__.py +++ b/colander/__init__.py @@ -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)