1
0
mirror of https://github.com/django/django.git synced 2025-10-26 23:26:08 +00:00

Fixed a number of flake8 errors -- particularly around unused imports and local variables

This commit is contained in:
Alex Gaynor
2013-09-06 21:56:40 -07:00
parent a9589dd280
commit 2530735d2d
13 changed files with 8 additions and 21 deletions

View File

@@ -1,7 +1,6 @@
from __future__ import unicode_literals
from django import forms
from django.utils import six
from django.utils.translation import ugettext_lazy as _
# While this couples the geographic forms to the GEOS library,
@@ -85,7 +84,7 @@ class GeometryField(forms.Field):
try:
data = self.to_python(data)
initial = self.to_python(initial)
except ValidationError:
except forms.ValidationError:
return True
# Only do a geographic comparison if both values are available