We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b0ac9d5 + ede6f09 commit 2f905faCopy full SHA for 2f905fa
src/future/moves/copyreg.py
@@ -2,7 +2,11 @@
2
from future.utils import PY3
3
4
if PY3:
5
- from copyreg import *
+ import copyreg, sys
6
+ # A "*" import uses Python 3's copyreg.__all__ which does not include
7
+ # all public names in the API surface for copyreg, this avoids that
8
+ # problem by just making our module _be_ a reference to the actual module.
9
+ sys.modules['future.moves.copyreg'] = copyreg
10
else:
11
__future_module__ = True
12
from copy_reg import *
0 commit comments