Author: russellm
Date: 2011-04-02 01:40:14 -0700 (Sat, 02 Apr 2011)
New Revision: 15983

Modified:
   django/trunk/django/forms/fields.py
Log:
Removed deprecated en_format helper function.

Modified: django/trunk/django/forms/fields.py
===================================================================
--- django/trunk/django/forms/fields.py 2011-04-02 08:39:52 UTC (rev 15982)
+++ django/trunk/django/forms/fields.py 2011-04-02 08:40:14 UTC (rev 15983)
@@ -43,16 +43,6 @@
     'TypedChoiceField', 'TypedMultipleChoiceField'
 )
 
-def en_format(name):
-    """
-    Helper function to stay backward compatible.
-    """
-    from django.conf.locale.en import formats
-    warnings.warn(
-        "`django.forms.fields.DEFAULT_%s` is deprecated; use 
`django.utils.formats.get_format('%s')` instead." % (name, name),
-        DeprecationWarning
-    )
-    return getattr(formats, name)
 
 DEFAULT_DATE_INPUT_FORMATS = lazy(lambda: en_format('DATE_INPUT_FORMATS'), 
tuple, list)()
 DEFAULT_TIME_INPUT_FORMATS = lazy(lambda: en_format('TIME_INPUT_FORMATS'), 
tuple, list)()

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to