__init__.py 727 B

1234567891011121314151617181920212223242526272829
  1. """
  2. Compatibility module.
  3. This module contains duplicated code from Python itself or 3rd party
  4. extensions, which may be included for the following reasons:
  5. * compatibility
  6. * we may only need a small subset of the copied library/module
  7. This module is deprecated since 1.26.0 and will be removed in future versions.
  8. """
  9. import warnings
  10. from .._utils import _inspect
  11. from .._utils._inspect import getargspec, formatargspec
  12. from . import py3k
  13. from .py3k import *
  14. warnings.warn(
  15. "`np.compat`, which was used during the Python 2 to 3 transition,"
  16. " is deprecated since 1.26.0, and will be removed",
  17. DeprecationWarning, stacklevel=2
  18. )
  19. __all__ = []
  20. __all__.extend(_inspect.__all__)
  21. __all__.extend(py3k.__all__)