Archived
24 lines
412 B
Python
24 lines
412 B
Python
try:
|
|
import copy_reg as copyreg
|
|
except ImportError:
|
|
import copyreg
|
|
|
|
from .utils import identity
|
|
|
|
copyreg.constructor(identity)
|
|
|
|
try:
|
|
from .cext import Proxy
|
|
from .cext import identity
|
|
except ImportError:
|
|
from .slots import Proxy
|
|
else:
|
|
copyreg.constructor(identity)
|
|
|
|
try:
|
|
from ._version import version as __version__
|
|
except ImportError:
|
|
__version__ = '1.8.0'
|
|
|
|
__all__ = ("Proxy",)
|