Skip to content

Commit

Permalink
Fixed #15237 -- Fixed a typo in specifying UTF-8 encoding in the feed…
Browse files Browse the repository at this point in the history
… generator and signing tests. Thanks, Aymeric Augustin.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16738 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jezdez committed Sep 9, 2011
1 parent 8258fe7 commit e55bbf4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion django/utils/feedgenerator.py
Expand Up @@ -285,7 +285,7 @@ def add_item_elements(self, handler, item):

class Atom1Feed(SyndicationFeed):
# Spec: http://atompub.org/2005/07/11/draft-ietf-atompub-format-10.html
mime_type = 'application/atom+xml; charset=utf8'
mime_type = 'application/atom+xml; charset=utf-8'
ns = u"http://www.w3.org/2005/Atom"

def write(self, outfile, encoding):
Expand Down
2 changes: 1 addition & 1 deletion tests/regressiontests/signing/tests.py
Expand Up @@ -13,7 +13,7 @@ def test_signature(self):
for s in (
'hello',
'3098247:529:087:',
u'\u2019'.encode('utf8'),
u'\u2019'.encode('utf-8'),
):
self.assertEqual(
signer.signature(s),
Expand Down
2 changes: 1 addition & 1 deletion tests/regressiontests/utils/feedgenerator.py
Expand Up @@ -66,6 +66,6 @@ def test_atom1_mime_type(self):
"""
atom_feed = feedgenerator.Atom1Feed("title", "link", "description")
self.assertEqual(
atom_feed.mime_type, "application/atom+xml; charset=utf8"
atom_feed.mime_type, "application/atom+xml; charset=utf-8"
)

0 comments on commit e55bbf4

Please sign in to comment.