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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user