__init__.py 674 B

1234567891011121314151617181920212223242526272829
  1. # Copyright (c) Twisted Matrix Laboratories.
  2. # See LICENSE for details.
  3. """
  4. Twisted Python: Utilities and Enhancements for Python.
  5. """
  6. from __future__ import absolute_import, division
  7. # Deprecating twisted.python.constants.
  8. from .compat import unicode
  9. from .versions import Version
  10. from .deprecate import deprecatedModuleAttribute
  11. deprecatedModuleAttribute(
  12. Version("Twisted", 16, 5, 0),
  13. "Please use constantly from PyPI instead.",
  14. "twisted.python", "constants")
  15. deprecatedModuleAttribute(
  16. Version('Twisted', 17, 5, 0),
  17. "Please use hyperlink from PyPI instead.",
  18. "twisted.python", "url")
  19. del Version
  20. del deprecatedModuleAttribute
  21. del unicode