We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43566ae commit 8e158b2Copy full SHA for 8e158b2
1 file changed
Lib/test/pickletester.py
@@ -1,6 +1,4 @@
1
# -*- coding: utf-8 -*-
2
-from __future__ import absolute_import
3
-
4
import unittest
5
import pickle
6
import cPickle
@@ -169,7 +167,7 @@ def __reduce__(self):
169
167
# Shouldn't support the recursion itself
170
168
return K, (self.value,)
171
172
-import __main__
+__main__ = sys.modules['__main__']
173
__main__.C = C
174
C.__module__ = "__main__"
175
__main__.D = D
0 commit comments