From dcfffbc9a0b4fdcf8ba2d54542ddb970874ee0bb Mon Sep 17 00:00:00 2001 From: Bertrand Bordage Date: Wed, 28 Oct 2015 10:47:48 +0100 Subject: [PATCH] Removes the last Python 2.6 compatibility code. --- cachalot/tests/signals.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/cachalot/tests/signals.py b/cachalot/tests/signals.py index 0024cd5..20431e3 100644 --- a/cachalot/tests/signals.py +++ b/cachalot/tests/signals.py @@ -1,15 +1,10 @@ # coding: utf-8 from __future__ import unicode_literals -from django.contrib.auth.models import User - - -try: - from unittest import skipIf -except ImportError: # For Python 2.6 - from unittest2 import skipIf +from unittest import skipIf from django.conf import settings +from django.contrib.auth.models import User from django.db import DEFAULT_DB_ALIAS from django.test import TransactionTestCase