  
  from django.conf import settings
  from django.utils.translation import ugettext as _, ugettext_lazy, ungettext
  from django.utils.functional import Promise, lazy
  from django.utils.encoding import force_unicode
  
  _datere = r'\d{4}-\d{1,2}-\d{1,2}'
  _timere = r'(?:[01]?[0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9])?'
  alnum_re = re.compile(r'^\w+$')
  alnumurl_re = re.compile(r'^[-\w/]+$')
 
</s> remove __test__ = {'API_TESTS':"""
 </s> add __test__ = {'API_TESTS':u""" </s> remove     data = str(field_data)
 </s> add     data = smart_str(field_data)
from django.utils.encoding import force_unicode, smart_str
  
  from django.conf import settings
  from django.utils.translation import ugettext as _, ugettext_lazy, ungettext
  from django.utils.functional import Promise, lazy
from django.utils.encoding import force_unicode, smart_str
  
  _datere = r'\d{4}-\d{1,2}-\d{1,2}'
  _timere = r'(?:[01]?[0-9]|2[0-3]):[0-5][0-9](?::[0-5][0-9])?'
  alnum_re = re.compile(r'^\w+$')
  alnumurl_re = re.compile(r'^[-\w/]+$')
keep keep keep keep replace keep keep keep keep keep
 Fixed #6492 -- Added bullet-proofing to isValidFloat validator. Thanks, Bastian Kleineidam.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@7258 bcc190cf-cafb-0310-a4f2-bffc1f526a37 
django/core/validators.py