Removed most of absolute_import imports

Should be unneeded with Python 2.7 and up.
Added some unicode_literals along the way.
This commit is contained in:
Claude Paroz 2013-07-29 19:19:04 +02:00
parent 402b4a7a20
commit 5c1143910e
264 changed files with 194 additions and 366 deletions

View file

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from __future__ import unicode_literals
from django.test import TestCase
from .models import Foo, Whiz, Bar, Article, Base, Child
@ -80,4 +80,4 @@ class StringLookupTests(TestCase):
self.assertEqual(repr(Article.objects.filter(submitted_from__contains='192.0.2')),
repr([a]))
# Test that the searches do not match the subnet mask (/32 in this case)
self.assertEqual(Article.objects.filter(submitted_from__contains='32').count(), 0)
self.assertEqual(Article.objects.filter(submitted_from__contains='32').count(), 0)