encoding.py 529 B

12345678910111213141516171819202122232425
  1. # -*- coding: utf-8 -*-
  2. """
  3. celery.utils.encoding
  4. ~~~~~~~~~~~~~~~~~~~~~
  5. This module has moved to :mod:`kombu.utils.encoding`.
  6. :copyright: (c) 2009 - 2012 by Ask Solem.
  7. :license: BSD, see LICENSE for more details.
  8. """
  9. from __future__ import absolute_import
  10. from kombu.utils.encoding import ( # noqa
  11. default_encode,
  12. default_encoding,
  13. bytes_t,
  14. bytes_to_str,
  15. str_t,
  16. str_to_bytes,
  17. ensure_bytes,
  18. from_utf8,
  19. safe_str,
  20. safe_repr,
  21. )