~abompard/mailman/import21

« back to all changes in this revision

Viewing changes to src/mailman/app/templates.py

  • Committer: Aurélien Bompard
  • Date: 2013-10-21 14:00:59 UTC
  • Revision ID: aurelien@bompard.org-20131021140059-elbn007c58vp89q1
Text templates should be in UTF-8

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
    def get(self, uri):
104
104
        """See `ITemplateLoader`."""
105
105
        with closing(urllib2.urlopen(uri)) as fp:
106
 
            return fp.read()
 
106
            return unicode(fp.read(), "utf-8")