  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,
  # it decouples from database (by not importing SpatialBackend).
  from django.contrib.gis.geos import GEOSException, GEOSGeometry, fromstr
 
</s> remove from django.utils.http import urlquote
 </s> add  </s> remove import datetime
from django.utils import six
 </s> add  </s> remove import warnings
 </s> add  </s> remove import sys
 </s> add  </s> remove from django.utils._os import upath
 </s> add 
  from __future__ import unicode_literals
  
  from django import forms

  from django.utils.translation import ugettext_lazy as _
  
  # While this couples the geographic forms to the GEOS library,
  # it decouples from database (by not importing SpatialBackend).
  from django.contrib.gis.geos import GEOSException, GEOSGeometry, fromstr
keep keep keep replace keep keep keep keep keep
 Fixed a number of flake8 errors -- particularly around unused imports and local variables 
django/contrib/gis/forms/fields.py