summaryrefslogtreecommitdiff
path: root/docs/ref/contrib
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-03-22 21:30:49 +0100
committerClaude Paroz <claude@2xlibre.net>2014-03-22 21:32:20 +0100
commit3a97f992fbfbcf8b0480875b257e5d541a4b8315 (patch)
treec5ac40df266f098c5b7b1378864685869fe2a324 /docs/ref/contrib
parent232181d1c5307d9af5fc292682661e91439a9289 (diff)
Fixed #22313 -- Removed 'u' prefixes from documentation
Diffstat (limited to 'docs/ref/contrib')
-rw-r--r--docs/ref/contrib/syndication.txt18
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/ref/contrib/syndication.txt b/docs/ref/contrib/syndication.txt
index 65b4582deb..277e51c71e 100644
--- a/docs/ref/contrib/syndication.txt
+++ b/docs/ref/contrib/syndication.txt
@@ -971,16 +971,16 @@ For example, to create an Atom 1.0 feed and print it to standard output::
>>> from django.utils import feedgenerator
>>> from datetime import datetime
>>> f = feedgenerator.Atom1Feed(
- ... title=u"My Weblog",
- ... link=u"http://www.example.com/",
- ... description=u"In which I write about what I ate today.",
- ... language=u"en",
- ... author_name=u"Myself",
- ... feed_url=u"http://example.com/atom.xml")
- >>> f.add_item(title=u"Hot dog today",
- ... link=u"http://www.example.com/entries/1/",
+ ... title="My Weblog",
+ ... link="http://www.example.com/",
+ ... description="In which I write about what I ate today.",
+ ... language="en",
+ ... author_name="Myself",
+ ... feed_url="http://example.com/atom.xml")
+ >>> f.add_item(title="Hot dog today",
+ ... link="http://www.example.com/entries/1/",
... pubdate=datetime.now(),
- ... description=u"<p>Today I had a Vienna Beef hot dog. It was pink, plump and perfect.</p>")
+ ... description="<p>Today I had a Vienna Beef hot dog. It was pink, plump and perfect.</p>")
>>> print(f.writeString('UTF-8'))
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">