Fixed python 3.2 compatibility.

This commit is contained in:
winhamwr
2014-04-23 18:37:46 -04:00
parent 70dc022f77
commit f2a08894fa

View File

@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from base64 import b64decode from base64 import b64decode
from datetime import date, datetime, timedelta, tzinfo from datetime import date, datetime, timedelta, tzinfo
from email.mime.base import MIMEBase from email.mime.base import MIMEBase
@@ -188,7 +190,7 @@ class DjrillBackendTests(DjrillBackendMockAPITestCase):
) )
# Slight modification from the Django unicode docs: # Slight modification from the Django unicode docs:
# http://django.readthedocs.org/en/latest/ref/unicode.html#email # http://django.readthedocs.org/en/latest/ref/unicode.html#email
msg.attach("Une pièce jointe.html", u'<p>\u2019</p>', mimetype='text/html') msg.attach("Une pièce jointe.html", '<p>\u2019</p>', mimetype='text/html')
msg.send() msg.send()
data = self.get_api_call_data() data = self.get_api_call_data()