Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added import of force_unicode to utils/text.py

For backwards compatibility with stupid people like me. Refs #18772.
  • Loading branch information...
commit fd04e711d2a5440d7a828644ee65b88bf00c83b5 1 parent 27d16a3
Adrian Holovaty authored August 15, 2012

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  django/utils/text.py
4  django/utils/text.py
@@ -7,7 +7,9 @@
7 7
 from django.utils.six.moves import html_entities
8 8
 from io import BytesIO
9 9
 
10  
-from django.utils.encoding import force_text
  10
+# Import force_unicode even though this module doesn't use it, because some
  11
+# people rely on it being here.
  12
+from django.utils.encoding import force_text, force_unicode
11 13
 from django.utils.functional import allow_lazy, SimpleLazyObject
12 14
 from django.utils import six
13 15
 from django.utils.translation import ugettext_lazy, ugettext as _, pgettext

0 notes on commit fd04e71

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