Edited docs/unicode.txt change from [6463] -- Americanized 'behavior'
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6766 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
53a5fa9928
commit
71dd90b25d
|
@ -136,7 +136,7 @@ for converting back and forth between Unicode and bytestrings.
|
||||||
* ``smart_str(s, encoding='utf-8', strings_only=False, errors='strict')``
|
* ``smart_str(s, encoding='utf-8', strings_only=False, errors='strict')``
|
||||||
is essentially the opposite of ``smart_unicode()``. It forces the first
|
is essentially the opposite of ``smart_unicode()``. It forces the first
|
||||||
argument to a bytestring. The ``strings_only`` parameter has the same
|
argument to a bytestring. The ``strings_only`` parameter has the same
|
||||||
behaviour as for ``smart_unicode()`` and ``force_unicode()``. This is
|
behavior as for ``smart_unicode()`` and ``force_unicode()``. This is
|
||||||
slightly different semantics from Python's builtin ``str()`` function,
|
slightly different semantics from Python's builtin ``str()`` function,
|
||||||
but the difference is needed in a few places within Django's internals.
|
but the difference is needed in a few places within Django's internals.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue