Ticket #15237: 15237-reopened.patch

File 15237-reopened.patch, 1.5 KB (added by aaugustin, 4 years ago)
  • django/utils/feedgenerator.py

     
    285285
    286286class Atom1Feed(SyndicationFeed):
    287287    # 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'
    289289    ns = u"http://www.w3.org/2005/Atom"
    290290
    291291    def write(self, outfile, encoding):
  • tests/regressiontests/signing/tests.py

     
    1313        for s in (
    1414            'hello',
    1515            '3098247:529:087:',
    16             u'\u2019'.encode('utf8'),
     16            u'\u2019'.encode('utf-8'),
    1717        ):
    1818            self.assertEqual(
    1919                signer.signature(s),
  • tests/regressiontests/utils/feedgenerator.py

     
    6666        """
    6767        atom_feed = feedgenerator.Atom1Feed("title", "link", "description")
    6868        self.assertEqual(
    69             atom_feed.mime_type, "application/atom+xml; charset=utf8"
     69            atom_feed.mime_type, "application/atom+xml; charset=utf-8"
    7070        )
    7171
Back to Top