1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06: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
import pickle
import datetime
@@ -83,7 +83,7 @@ class PickleabilityTestCase(TestCase):
def test_model_pickle_dynamic(self):
class Meta:
proxy = True
dynclass = type("DynamicEventSubclass", (Event, ),
dynclass = type(str("DynamicEventSubclass"), (Event, ),
{'Meta': Meta, '__module__': Event.__module__})
original = dynclass(pk=1)
dumped = pickle.dumps(original)