X-Git-Url: https://git.ozlabs.org/?p=patchwork;a=blobdiff_plain;f=patchwork%2Ftests%2Ftest_patchparser.py;fp=patchwork%2Ftests%2Ftest_patchparser.py;h=a49bf9b8d79a4bc095cf1d3cb7ac224e5fbfb241;hp=58689bbd86c98d5a990d9e911eeb54b5ffa48aaf;hb=ed3250d636b024973f527899ee6bc7210ccfb5b4;hpb=ea1baeefb09236cfbf30ce35a2d67d601e3ff69f diff --git a/patchwork/tests/test_patchparser.py b/patchwork/tests/test_patchparser.py index 58689bb..a49bf9b 100644 --- a/patchwork/tests/test_patchparser.py +++ b/patchwork/tests/test_patchparser.py @@ -25,11 +25,7 @@ from patchwork.models import Project, Person, Patch, Comment, State, \ from patchwork.tests.utils import read_patch, read_mail, create_email, \ defaults, create_user -try: - from email.mime.text import MIMEText -except ImportError: - # Python 2.4 compatibility - from email.MIMEText import MIMEText +from email.mime.text import MIMEText class PatchTest(TestCase): fixtures = ['default_states']