copyreg.py 438 B

123456789101112
  1. from __future__ import absolute_import
  2. from future.utils import PY3
  3. if PY3:
  4. import copyreg, sys
  5. # A "*" import uses Python 3's copyreg.__all__ which does not include
  6. # all public names in the API surface for copyreg, this avoids that
  7. # problem by just making our module _be_ a reference to the actual module.
  8. sys.modules['future.moves.copyreg'] = copyreg
  9. else:
  10. __future_module__ = True
  11. from copy_reg import *