Removed Python 2 comment in ValidationError.

This commit is contained in:
Tim Graham 2017-10-23 08:53:42 -04:00
parent 68407e3545
commit 7fb913c805
1 changed files with 0 additions and 2 deletions

View File

@ -102,8 +102,6 @@ class ValidationError(Exception):
list or dictionary can be an actual `list` or `dict` or an instance list or dictionary can be an actual `list` or `dict` or an instance
of ValidationError with its `error_list` or `error_dict` attribute set. of ValidationError with its `error_list` or `error_dict` attribute set.
""" """
# PY2 can't pickle naive exception: http://bugs.python.org/issue1692335.
super().__init__(message, code, params) super().__init__(message, code, params)
if isinstance(message, ValidationError): if isinstance(message, ValidationError):