Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #15237 -- Fixed a typo in specifying UTF-8 encoding in the feed…

… 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...
commit e55bbf4c3c42b17d52c21bc3a460b4981fdc190c 1 parent 8258fe7
Jannis Leidel jezdez authored
2  django/utils/feedgenerator.py
View
@@ -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):
2  tests/regressiontests/signing/tests.py
View
@@ -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),
2  tests/regressiontests/utils/feedgenerator.py
View
@@ -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"
)
Please sign in to comment.
Something went wrong with that request. Please try again.