__init__.py 433 B

1234567891011121314151617181920212223
  1. try:
  2. import copy_reg as copyreg
  3. except ImportError:
  4. import copyreg
  5. from .utils import identity
  6. copyreg.constructor(identity)
  7. try:
  8. from .cext import Proxy
  9. from .cext import identity
  10. except ImportError:
  11. from .slots import Proxy
  12. else:
  13. copyreg.constructor(identity)
  14. try:
  15. from ._version import version as __version__
  16. except ImportError:
  17. __version__ = '1.7.1'
  18. __all__ = "Proxy",