mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #22313 -- Removed 'u' prefixes from documentation
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user