1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

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,4 +1,4 @@
from __future__ import absolute_import
from __future__ import unicode_literals
from datetime import date
import traceback
@@ -65,7 +65,7 @@ class GetOrCreateTests(TestCase):
ManualPrimaryKeyTest.objects.get_or_create(id=1, data="Different")
except IntegrityError as e:
formatted_traceback = traceback.format_exc()
self.assertIn('obj.save', formatted_traceback)
self.assertIn(str('obj.save'), formatted_traceback)
def test_savepoint_rollback(self):
# Regression test for #20463: the database connection should still be