diff options
| author | Claude Paroz <claude@2xlibre.net> | 2017-01-26 09:37:07 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2017-01-30 15:04:45 +0100 |
| commit | 52138b1fd08f80fe98def7e22a9693415b4f7744 (patch) | |
| tree | 83a4e3c95bac121d0cc661ed2e637ad99fe322e4 /docs/ref | |
| parent | 277a4dd4b4cc2a2cad77139882f084480751a95a (diff) | |
Refs #23919 -- Removed usage of obsolete SafeBytes class
The class will be removed as part of #27753.
Thanks Tim Graham for the review.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/utils.txt | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index cd5bbee707..1e37d28ca8 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -763,20 +763,12 @@ string" means that the producer of the string has already turned characters that should not be interpreted by the HTML engine (e.g. '<') into the appropriate entities. -.. class:: SafeBytes - - A ``bytes`` subclass that has been specifically marked as "safe" - (requires no further escaping) for HTML output purposes. - .. class:: SafeString A ``str`` subclass that has been specifically marked as "safe" (requires no further escaping) for HTML output purposes. Alias of :class:`SafeText`. - Alias of :class:`SafeBytes` on Python 2 (in older versions of Django that - support it). - .. class:: SafeText A ``str`` subclass that has been specifically marked as "safe" for HTML @@ -799,7 +791,7 @@ appropriate entities. >>> mystr = '<b>Hello World</b> ' >>> mystr = mark_safe(mystr) >>> type(mystr) - <class 'django.utils.safestring.SafeBytes'> + <class 'django.utils.safestring.SafeText'> >>> mystr = mystr.strip() # removing whitespace >>> type(mystr) |
