changeset 8696 | 0bb18407c053 |
parent 8694 | d901c36bcfce |
child 8748 | f5027f8d2478 |
--- a/__init__.py Thu Feb 14 15:38:25 2013 +0100 +++ b/__init__.py Thu Feb 14 16:01:24 2013 +0100 @@ -215,7 +215,7 @@ # set empty dict else translation won't be done for backward # compatibility reason (see ValidationError.translate method) substitutions = {} - for key in errors.keys(): + for key in list(errors): if isinstance(key, tuple): errors[rname(*key)] = errors.pop(key) return ValidationError(getattr(entity, 'eid', entity), errors,