diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-03-22 21:30:49 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-03-22 21:32:20 +0100 |
| commit | 3a97f992fbfbcf8b0480875b257e5d541a4b8315 (patch) | |
| tree | c5ac40df266f098c5b7b1378864685869fe2a324 /docs/ref/utils.txt | |
| parent | 232181d1c5307d9af5fc292682661e91439a9289 (diff) | |
Fixed #22313 -- Removed 'u' prefixes from documentation
Diffstat (limited to 'docs/ref/utils.txt')
| -rw-r--r-- | docs/ref/utils.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 5515c01a20..416a1edd2c 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -295,14 +295,14 @@ Sample usage:: >>> from django.utils import feedgenerator >>> feed = feedgenerator.Rss201rev2Feed( - ... title=u"Poynter E-Media Tidbits", - ... link=u"http://www.poynter.org/column.asp?id=31", - ... description=u"A group Weblog by the sharpest minds in online media/journalism/publishing.", - ... language=u"en", + ... title="Poynter E-Media Tidbits", + ... link="http://www.poynter.org/column.asp?id=31", + ... description="A group Weblog by the sharpest minds in online media/journalism/publishing.", + ... language="en", ... ) >>> feed.add_item( ... title="Hello", - ... link=u"http://www.holovaty.com/test/", + ... link="http://www.holovaty.com/test/", ... description="Testing." ... ) >>> with open('test.rss', 'w') as fp: @@ -559,7 +559,7 @@ escaping HTML. .. code-block:: python - mark_safe(u"%s <b>%s</b> %s" % (some_html, + mark_safe("%s <b>%s</b> %s" % (some_html, escape(some_text), escape(some_other_text), )) @@ -568,7 +568,7 @@ escaping HTML. .. code-block:: python - format_html(u"{0} <b>{1}</b> {2}", + format_html("{0} <b>{1}</b> {2}", mark_safe(some_html), some_text, some_other_text) This has the advantage that you don't need to apply :func:`escape` to each |
