summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-10-23 08:53:42 -0400
committerTim Graham <timograham@gmail.com>2017-10-23 08:57:07 -0400
commit9f654ae63b9e517c5bb7cbb76a2fe440c5ed5302 (patch)
treedba52b41a97ba5ca8298cd40896ebc6ada371177
parentf6ea7c139f6030355ba4c6a6a2da2d2ef88c61b9 (diff)
[2.0.x] Removed Python 2 comment in ValidationError.
Backport of 7fb913c80555594a6dd756733fdb5869d5dba213 from master
-rw-r--r--django/core/exceptions.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/django/core/exceptions.py b/django/core/exceptions.py
index 86a3988585..0e85397b9c 100644
--- a/django/core/exceptions.py
+++ b/django/core/exceptions.py
@@ -102,8 +102,6 @@ class ValidationError(Exception):
list or dictionary can be an actual `list` or `dict` or an instance
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)
if isinstance(message, ValidationError):