Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed deprecated en_format helper function.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8db51a70dad5b5f30232237e9883fa2504bf4d49 1 parent eea43f2
Russell Keith-Magee authored April 02, 2011

Showing 1 changed file with 0 additions and 10 deletions. Show diff stats Hide diff stats

  1. 10  django/forms/fields.py
10  django/forms/fields.py
@@ -43,16 +43,6 @@
43 43
     'TypedChoiceField', 'TypedMultipleChoiceField'
44 44
 )
45 45
 
46  
-def en_format(name):
47  
-    """
48  
-    Helper function to stay backward compatible.
49  
-    """
50  
-    from django.conf.locale.en import formats
51  
-    warnings.warn(
52  
-        "`django.forms.fields.DEFAULT_%s` is deprecated; use `django.utils.formats.get_format('%s')` instead." % (name, name),
53  
-        DeprecationWarning
54  
-    )
55  
-    return getattr(formats, name)
56 46
 
57 47
 DEFAULT_DATE_INPUT_FORMATS = lazy(lambda: en_format('DATE_INPUT_FORMATS'), tuple, list)()
58 48
 DEFAULT_TIME_INPUT_FORMATS = lazy(lambda: en_format('TIME_INPUT_FORMATS'), tuple, list)()

0 notes on commit 8db51a7

Please sign in to comment.
Something went wrong with that request. Please try again.