Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored September 09, 2011
2  django/utils/feedgenerator.py
@@ -285,7 +285,7 @@ def add_item_elements(self, handler, item):
285 285
 
286 286
 class Atom1Feed(SyndicationFeed):
287 287
     # Spec: http://atompub.org/2005/07/11/draft-ietf-atompub-format-10.html
288  
-    mime_type = 'application/atom+xml; charset=utf8'
  288
+    mime_type = 'application/atom+xml; charset=utf-8'
289 289
     ns = u"http://www.w3.org/2005/Atom"
290 290
 
291 291
     def write(self, outfile, encoding):
2  tests/regressiontests/signing/tests.py
@@ -13,7 +13,7 @@ def test_signature(self):
13 13
         for s in (
14 14
             'hello',
15 15
             '3098247:529:087:',
16  
-            u'\u2019'.encode('utf8'),
  16
+            u'\u2019'.encode('utf-8'),
17 17
         ):
18 18
             self.assertEqual(
19 19
                 signer.signature(s),
2  tests/regressiontests/utils/feedgenerator.py
@@ -66,6 +66,6 @@ def test_atom1_mime_type(self):
66 66
         """
67 67
         atom_feed = feedgenerator.Atom1Feed("title", "link", "description")
68 68
         self.assertEqual(
69  
-            atom_feed.mime_type, "application/atom+xml; charset=utf8"
  69
+            atom_feed.mime_type, "application/atom+xml; charset=utf-8"
70 70
         )
71 71
 

0 notes on commit e55bbf4

Please sign in to comment.
Something went wrong with that request. Please try again.