mirror of
https://github.com/django/django.git
synced 2025-04-14 12:24:36 +00:00
[2.0.x] Removed Python 2 comment in ValidationError.
Backport of 7fb913c80555594a6dd756733fdb5869d5dba213 from master
This commit is contained in:
parent
f6ea7c139f
commit
9f654ae63b
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user