Fixed #29829 -- Remove unused code in contrib.sites.models._simple_domain_name_validator().

This commit is contained in:
Hasan Ramezani 2018-10-10 02:50:00 +02:00 committed by Tim Graham
parent b5d7604cb0
commit f3d3338e06
1 changed files with 0 additions and 2 deletions

View File

@ -14,8 +14,6 @@ def _simple_domain_name_validator(value):
Validate that the given value contains no whitespaces to prevent common
typos.
"""
if not value:
return
checks = ((s in value) for s in string.whitespace)
if any(checks):
raise ValidationError(